Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 107.9 kB / 17.06 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 191 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.05 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 63.91 kB / 458.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.495/0.4966, allocations: 58.05 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007895/0.5045, allocations: 4.922 MB / 0.5089 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004833/0.5094, allocations: 2.478 MB / 0.5113 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004861/0.5099, allocations: 14.91 kB / 0.5113 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001655/0.5116, allocations: 434 kB / 0.5118 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001863/0.5135, allocations: 0.5077 MB / 0.5122 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.5148, allocations: 281.5 kB / 0.5125 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001604/0.5164, allocations: 0.7476 MB / 0.5132 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007447/0.5172, allocations: 334.7 kB / 0.5136 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005283/0.5177, allocations: 323 kB / 0.5139 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/0.5182, allocations: 334.8 kB / 0.5142 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.657e-05/0.5183, allocations: 36.06 kB / 0.5142 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.5197, allocations: 0.6275 MB / 0.5148 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.52, allocations: 199.7 kB / 0.515 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003214/0.5203, allocations: 246.6 kB / 0.5153 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001587/0.5219, allocations: 0.7585 MB / 0.516 GB, free: 412 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.5219, allocations: 5.188 kB / 0.516 GB, free: 408 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.522, allocations: 0 / 0.516 GB, free: 408 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.522, allocations: 0 / 0.516 GB, free: 408 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001456/0.5234, allocations: 0.7678 MB / 0.5168 GB, free: 15.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.5235, allocations: 13.64 kB / 0.5168 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001925/0.5254, allocations: 207.4 kB / 0.517 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007313/0.5262, allocations: 372.8 kB / 0.5173 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.609e-05/0.5262, allocations: 35.23 kB / 0.5174 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.5264, allocations: 39.97 kB / 0.5174 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.5277, allocations: 0.6306 MB / 0.518 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.5277, allocations: 9.656 kB / 0.518 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.147e-05/0.5278, allocations: 20.86 kB / 0.518 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.189e-05/0.5279, allocations: 32.92 kB / 0.5181 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.529, allocations: 0.612 MB / 0.5187 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003575/0.5325, allocations: 2.241 MB / 0.5209 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000764/0.5333, allocations: 486.8 kB / 0.5213 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/0.5337, allocations: 239.3 kB / 0.5216 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.5338, allocations: 13.06 kB / 0.5216 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.5339, allocations: 37.48 kB / 0.5216 GB, free: 13.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.905e-06/0.5339, allocations: 1.094 kB / 0.5216 GB, free: 13.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.004195/0.5381, allocations: 1.7 MB / 0.5233 GB, free: 12.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.5382, allocations: 82.2 kB / 0.5233 GB, free: 12.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004992/0.5387, allocations: 284.1 kB / 0.5236 GB, free: 11.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.5387, allocations: 39.91 kB / 0.5237 GB, free: 11.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.5389, allocations: 223.8 kB / 0.5239 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.5391, allocations: 154 kB / 0.524 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.5392, allocations: 82.16 kB / 0.5241 GB, free: 11.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.5395, allocations: 351 kB / 0.5244 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003595/0.5398, allocations: 179.5 kB / 0.5246 GB, free: 11.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.5403, allocations: 288.2 kB / 0.5249 GB, free: 10.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008585/0.5412, allocations: 0.5074 MB / 0.5254 GB, free: 10.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.5412, allocations: 1.594 kB / 0.5254 GB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001357/0.5425, allocations: 0.6834 MB / 0.526 GB, free: 10.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.5426, allocations: 8.156 kB / 0.526 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.5426, allocations: 6.375 kB / 0.5261 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006561/0.5433, allocations: 172.7 kB / 0.5262 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003893/0.5437, allocations: 98.22 kB / 0.5263 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004173/0.5478, allocations: 2.782 MB / 0.529 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.5482, allocations: 21.42 kB / 0.529 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.5483, allocations: 21.3 kB / 0.5291 GB, free: 8.309 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003848/0.5486, allocations: 208.2 kB / 0.5293 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.5488, allocations: 36.83 kB / 0.5293 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/0.5502, allocations: 0.6311 MB / 0.5299 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.5502, allocations: 4.812 kB / 0.5299 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.5502, allocations: 5.312 kB / 0.5299 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.5502, allocations: 10.17 kB / 0.5299 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.5529, allocations: 1.344 MB / 0.5312 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.5529, allocations: 5.219 kB / 0.5313 GB, free: 7.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.5533, allocations: 80.77 kB / 0.5313 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005429/0.5538, allocations: 142.2 kB / 0.5315 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.891e-05/0.5539, allocations: 12.8 kB / 0.5315 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003561/0.5575, allocations: 2.561 MB / 0.534 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.5575, allocations: 5.031 kB / 0.534 GB, free: 4.906 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.5592, allocations: 0.9587 MB / 0.5349 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.5594, allocations: 111.7 kB / 0.535 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.947e-05/0.5594, allocations: 12.06 kB / 0.535 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.5596, allocations: 12.56 kB / 0.5351 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/0.5597, allocations: 31.89 kB / 0.5351 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.5598, allocations: 18.17 kB / 0.5351 GB, free: 4.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002718/0.5601, allocations: 195.4 kB / 0.5353 GB, free: 4.043 MB / 398.1 MB Notification: Performance of sort global known variables: time 4e-07/0.5601, allocations: 0 / 0.5353 GB, free: 4.043 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008868/0.561, allocations: 143.5 kB / 0.5354 GB, free: 4.023 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001865/0.5612, allocations: 112.4 kB / 0.5355 GB, free: 3.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.5627, allocations: 0.6799 MB / 0.5362 GB, free: 3.535 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5627, allocations: 1.281 kB / 0.5362 GB, free: 3.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000826/0.5635, allocations: 422.5 kB / 0.5366 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005789/0.5641, allocations: 81.7 kB / 0.5367 GB, free: 3.227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.5665, allocations: 1.118 MB / 0.5378 GB, free: 2.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006233/0.5671, allocations: 0.8718 MB / 0.5386 GB, free: 1.695 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002637/0.5674, allocations: 72.81 kB / 0.5387 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.5675, allocations: 37.55 kB / 0.5387 GB, free: 1.648 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5675, allocations: 0 / 0.5387 GB, free: 1.648 MB / 398.1 MB Notification: Performance of Templates: time 0.01565/0.5832, allocations: 5.835 MB / 0.5444 GB, free: 14.37 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches