Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 199.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007778/0.000778, allocations: 97.97 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002678, allocations: 4 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2037, allocations: 51.3 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.005893/0.2096, allocations: 8.4 MB / 416.5 MB, free: 19.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003841/0.2135, allocations: 2.493 MB / 418.9 MB, free: 16.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007866/0.2143, allocations: 71.81 kB / 419 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007748/0.2151, allocations: 413.4 kB / 419.4 MB, free: 16.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001571/0.2167, allocations: 0.6218 MB / 420 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.218, allocations: 0.7665 MB / 420.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002507/0.2205, allocations: 3.715 MB / 424.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01193/0.2324, allocations: 10.84 MB / 435.4 MB, free: 200 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002318/0.2348, allocations: 1.627 MB / 437 MB, free: 14.56 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002678/0.2375, allocations: 1.836 MB / 438.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004983/0.238, allocations: 272 kB / 439.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001296/0.2393, allocations: 499.8 kB / 439.6 MB, free: 11.96 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006054/0.2399, allocations: 0.7162 MB / 440.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002117/0.2421, allocations: 1.938 MB / 442.2 MB, free: 9.293 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006713/0.2488, allocations: 7.516 MB / 449.8 MB, free: 1.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2488, allocations: 0 / 449.8 MB, free: 1.758 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2488, allocations: 0 / 449.8 MB, free: 1.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001814/0.249, allocations: 0 / 449.8 MB, free: 1.758 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01036/0.2594, allocations: 4.349 MB / 454.1 MB, free: 13.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.2594, allocations: 12.03 kB / 454.1 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007494/0.2669, allocations: 1.327 MB / 455.4 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004377/0.2713, allocations: 2.509 MB / 458 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002971/0.2717, allocations: 349.3 kB / 458.3 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009717/0.2726, allocations: 455.9 kB / 458.7 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/0.2836, allocations: 6.074 MB / 464.8 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.698e-05/0.2838, allocations: 7.938 kB / 464.8 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004108/0.2842, allocations: 188 kB / 465 MB, free: 2.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001666/0.2844, allocations: 197.4 kB / 465.2 MB, free: 2.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009208/0.2936, allocations: 5.257 MB / 470.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02827/0.3219, allocations: 21.31 MB / 491.8 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005569/0.3275, allocations: 5.59 MB / 497.4 MB, free: 488 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009936/0.3285, allocations: 0.7097 MB / 498.1 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001921/0.3287, allocations: 199 kB / 498.3 MB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.3287, allocations: 43.56 kB / 498.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=100): time 2.385e-06/0.3287, allocations: 0 / 498.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.002206/0.3309, allocations: 1.529 MB / 499.8 MB, free: 13.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.331, allocations: 72.39 kB / 499.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.3328, allocations: 1.45 MB / 0.4896 GB, free: 12.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.871e-05/0.3329, allocations: 37.7 kB / 0.4896 GB, free: 12.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.334, allocations: 1.955 MB / 0.4915 GB, free: 10.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.3342, allocations: 371 kB / 0.4919 GB, free: 10 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.3343, allocations: 44 kB / 0.4919 GB, free: 9.961 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.3346, allocations: 451.3 kB / 0.4924 GB, free: 9.512 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.3358, allocations: 0.8436 MB / 0.4932 GB, free: 8.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.3375, allocations: 1.976 MB / 0.4951 GB, free: 6.133 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00292/0.3404, allocations: 2.978 MB / 0.498 GB, free: 2.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.88e-05/0.3405, allocations: 12 kB / 0.498 GB, free: 2.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.1974/0.5379, allocations: 2.848 MB / 0.5008 GB, free: 84.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.236e-05/0.538, allocations: 23 kB / 0.5008 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-05/0.5381, allocations: 39.31 kB / 0.5009 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.493e-05/0.5381, allocations: 54.36 kB / 0.5009 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.54, allocations: 0.5358 MB / 0.5015 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.491e-05/0.5401, allocations: 83.44 kB / 0.5015 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.5414, allocations: 295.4 kB / 0.5018 GB, free: 84.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001666/0.5416, allocations: 123.3 kB / 0.5019 GB, free: 84.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 281 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002541/0.5441, allocations: 1.665 MB / 0.5036 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.5444, allocations: 140.2 kB / 0.5037 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/0.5463, allocations: 1.416 MB / 0.5051 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001492/0.5478, allocations: 1.007 MB / 0.5061 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.5479, allocations: 3.562 kB / 0.5061 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.5479, allocations: 7.453 kB / 0.5061 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/0.5677, allocations: 13.51 MB / 0.5193 GB, free: 76.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.734e-05/0.5678, allocations: 19.38 kB / 0.5193 GB, free: 76.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009842/0.5688, allocations: 206.7 kB / 0.5195 GB, free: 76.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-05/0.5688, allocations: 32.05 kB / 0.5195 GB, free: 76.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.5689, allocations: 45.84 kB / 0.5196 GB, free: 76.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.203e-05/0.569, allocations: 49.61 kB / 0.5196 GB, free: 76.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-05/0.569, allocations: 34.81 kB / 0.5196 GB, free: 76.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003405/0.5724, allocations: 2.558 MB / 0.5221 GB, free: 74.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006274/0.5731, allocations: 343.5 kB / 0.5225 GB, free: 74.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002101/0.5733, allocations: 47.83 kB / 0.5225 GB, free: 74.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.5743, allocations: 65.83 kB / 0.5226 GB, free: 74.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.5745, allocations: 130 kB / 0.5227 GB, free: 74.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.5746, allocations: 57.23 kB / 0.5228 GB, free: 74.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001645/0.5763, allocations: 0.9887 MB / 0.5237 GB, free: 73.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5763, allocations: 6 kB / 0.5237 GB, free: 73.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003528/0.5798, allocations: 0.9308 MB / 0.5246 GB, free: 72.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 87 * Number of states: 1 (voltageSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00037/0.5802, allocations: 202 kB / 0.5248 GB, free: 72.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003324/0.5836, allocations: 1.912 MB / 0.5267 GB, free: 70.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.5836, allocations: 4 kB / 0.5267 GB, free: 70.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.5846, allocations: 0.6131 MB / 0.5273 GB, free: 69.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007216/0.5918, allocations: 369.7 kB / 0.5276 GB, free: 69.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.6054, allocations: 8.294 MB / 0.5357 GB, free: 60.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00308/0.6085, allocations: 2.992 MB / 0.5387 GB, free: 57.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005871/0.6091, allocations: 139.4 kB / 0.5388 GB, free: 57.51 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6092, allocations: 0 / 0.5388 GB, free: 57.51 MB / 378.7 MB Notification: Performance of Templates: time 0.06322/0.6724, allocations: 38.06 MB / 0.576 GB, free: 19.51 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & ./Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches