Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001656/0.001656, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002129/0.002129, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 67.59 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 50.52 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.009898/0.1138, allocations: 9.739 MB / 368.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005847/0.1197, allocations: 2.76 MB / 371.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.121, allocations: 79.75 kB / 371.5 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1851/0.3061, allocations: 4.174 MB / 375.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00379/0.3099, allocations: 0.7534 MB / 376.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002379/0.3123, allocations: 0.9686 MB / 377.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006678/0.319, allocations: 4.068 MB / 381.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.014/0.3331, allocations: 10.96 MB / 392.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003184/0.3363, allocations: 2.355 MB / 394.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002955/0.3393, allocations: 2.653 MB / 397.4 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008721/0.3402, allocations: 0.6627 MB / 398.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.3415, allocations: 0.9004 MB / 399 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001748/0.3432, allocations: 1.333 MB / 400.3 MB, free: 0 / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002567/0.3458, allocations: 2.565 MB / 402.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007088/0.3529, allocations: 8.907 MB / 411.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3529, allocations: 4 kB / 411.8 MB, free: 5.012 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3529, allocations: 0 / 411.8 MB, free: 5.012 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001378/0.3531, allocations: 0 / 411.8 MB, free: 5.012 MB / 318.1 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.01264/0.3657, allocations: 5.304 MB / 417.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3658, allocations: 12.03 kB / 417.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007707/0.3735, allocations: 1.321 MB / 418.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005586/0.3791, allocations: 2.603 MB / 421 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002602/0.3794, allocations: 348 kB / 421.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009655/0.3804, allocations: 467.6 kB / 421.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01083/0.3912, allocations: 6.089 MB / 427.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.912e-05/0.3913, allocations: 4 kB / 427.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004289/0.3918, allocations: 187.6 kB / 428.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000195/0.392, allocations: 193.5 kB / 428.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009449/0.4014, allocations: 5.276 MB / 433.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02723/0.4287, allocations: 20.95 MB / 454.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005805/0.4345, allocations: 5.579 MB / 460.1 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009059/0.4355, allocations: 0.6551 MB / 460.7 MB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002368/0.4357, allocations: 194.5 kB / 460.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.4358, allocations: 43.56 kB / 461 MB, free: 2.293 MB / 366.1 MB Notification: Performance of pre-optimization done (n=94): time 3.156e-06/0.4358, allocations: 0 / 461 MB, free: 2.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.00197/0.4378, allocations: 1.424 MB / 462.4 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.4378, allocations: 64.41 kB / 462.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.4396, allocations: 1.461 MB / 463.9 MB, free: 15.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-05/0.4396, allocations: 37.7 kB / 464 MB, free: 15.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001036/0.4407, allocations: 1.965 MB / 465.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.4409, allocations: 348 kB / 466.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000536/0.4415, allocations: 475.5 kB / 466.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4416, allocations: 353.9 kB / 467.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.4426, allocations: 0.8163 MB / 467.9 MB, free: 11.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.4444, allocations: 1.941 MB / 469.8 MB, free: 8.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.4472, allocations: 2.916 MB / 472.7 MB, free: 5.348 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.942e-05/0.4473, allocations: 15.94 kB / 472.8 MB, free: 5.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.003878/0.4511, allocations: 2.786 MB / 475.5 MB, free: 2.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.4512, allocations: 28.12 kB / 475.6 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.507e-05/0.4512, allocations: 44 kB / 475.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.125e-05/0.4513, allocations: 56 kB / 475.7 MB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.4528, allocations: 0.5303 MB / 476.2 MB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.272e-05/0.4529, allocations: 79.7 kB / 476.3 MB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.4542, allocations: 297.1 kB / 476.6 MB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/0.4544, allocations: 132 kB / 476.7 MB, free: 1.387 MB / 382.1 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 (282): * Single equations (assignments): 281 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002779/0.4572, allocations: 1.664 MB / 478.4 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.4574, allocations: 126.4 kB / 478.5 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.4593, allocations: 1.338 MB / 479.8 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001141/0.4604, allocations: 0.9279 MB / 480.8 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4604, allocations: 0 / 480.8 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.4604, allocations: 3.984 kB / 480.8 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/0.4759, allocations: 13.5 MB / 494.3 MB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/0.476, allocations: 20 kB / 494.3 MB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009391/0.4769, allocations: 211.6 kB / 494.5 MB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.422e-05/0.477, allocations: 28 kB / 494.5 MB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.852e-05/0.477, allocations: 47.92 kB / 494.6 MB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.727e-05/0.4771, allocations: 36.48 kB / 494.6 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.009e-05/0.4771, allocations: 39.81 kB / 494.6 MB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002958/0.4801, allocations: 2.441 MB / 497.1 MB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006153/0.4807, allocations: 319.2 kB / 497.4 MB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.4808, allocations: 47.97 kB / 497.4 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007066/0.4816, allocations: 71.94 kB / 497.5 MB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.4817, allocations: 127.4 kB / 497.6 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.839e-05/0.4818, allocations: 59.94 kB / 497.7 MB, free: 11.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001306/0.4831, allocations: 0.9877 MB / 498.7 MB, free: 10.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4831, allocations: 0 / 498.7 MB, free: 10.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002872/0.486, allocations: 0.9437 MB / 499.6 MB, free: 9.211 MB / 414.1 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 (98): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003513/0.4864, allocations: 201.7 kB / 499.8 MB, free: 9.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002733/0.4891, allocations: 1.865 MB / 0.4899 GB, free: 7.141 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.4891, allocations: 4 kB / 0.4899 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008771/0.49, allocations: 0.5711 MB / 0.4905 GB, free: 6.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.4919, allocations: 381 kB / 0.4908 GB, free: 6.207 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009885/0.5018, allocations: 6.849 MB / 0.4975 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002555/0.5044, allocations: 3.071 MB / 0.5005 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001709/0.5061, allocations: 0.8132 MB / 0.5013 GB, free: 11.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.5063, allocations: 115.4 kB / 0.5014 GB, free: 11.02 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5063, allocations: 0 / 0.5014 GB, free: 11.02 MB / 430.1 MB Notification: Performance of Templates: time 0.03175/0.5381, allocations: 17.45 MB / 0.5185 GB, free: 9.719 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches