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.001286/0.001286, allocations: 114.8 kB / 17.74 MB, free: 5.348 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.001278/0.001278, allocations: 184.5 kB / 18.67 MB, free: 4.43 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.371/1.371, allocations: 222.9 MB / 242.4 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.172/0.172, allocations: 38.04 MB / 330.6 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 64.14 kB / 458.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3283, allocations: 58.05 MB / 0.5048 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005726/0.3341, allocations: 4.927 MB / 0.5096 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003166/0.3373, allocations: 2.476 MB / 0.512 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004174/0.3377, allocations: 13.84 kB / 0.512 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.339, allocations: 435.1 kB / 0.5124 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001406/0.3404, allocations: 0.5088 MB / 0.5129 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000751/0.3412, allocations: 281.8 kB / 0.5132 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.3422, allocations: 0.7452 MB / 0.5139 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005462/0.3427, allocations: 334.6 kB / 0.5142 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006742/0.3434, allocations: 326.9 kB / 0.5145 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006071/0.344, allocations: 325.5 kB / 0.5148 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.787e-05/0.3441, allocations: 36.69 kB / 0.5149 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.3453, allocations: 0.637 MB / 0.5155 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.3456, allocations: 200.1 kB / 0.5157 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003599/0.3459, allocations: 243.4 kB / 0.5159 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0013/0.3472, allocations: 0.7646 MB / 0.5167 GB, free: 384 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3473, allocations: 0 / 0.5167 GB, free: 384 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3473, allocations: 0 / 0.5167 GB, free: 384 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.3473, allocations: 1.875 kB / 0.5167 GB, free: 384 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.001177/0.3485, allocations: 0.7702 MB / 0.5174 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3485, allocations: 14.06 kB / 0.5174 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001689/0.3502, allocations: 203.1 kB / 0.5176 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005975/0.3508, allocations: 369.1 kB / 0.518 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.922e-05/0.3509, allocations: 34.67 kB / 0.518 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.803e-05/0.351, allocations: 44.59 kB / 0.5181 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3521, allocations: 0.627 MB / 0.5187 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.3521, allocations: 6 kB / 0.5187 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.3521, allocations: 16.59 kB / 0.5187 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.478e-05/0.3522, allocations: 35.59 kB / 0.5187 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009377/0.3532, allocations: 0.6117 MB / 0.5193 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.3563, allocations: 2.239 MB / 0.5215 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006566/0.357, allocations: 498.4 kB / 0.522 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.3574, allocations: 235.2 kB / 0.5222 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/0.3574, allocations: 4.875 kB / 0.5222 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.3574, allocations: 46 kB / 0.5223 GB, free: 13.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.653e-06/0.3574, allocations: 0 / 0.5223 GB, free: 13.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003352/0.3608, allocations: 1.696 MB / 0.5239 GB, free: 12.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.3609, allocations: 86.34 kB / 0.524 GB, free: 12.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/0.3612, allocations: 288 kB / 0.5243 GB, free: 11.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.3612, allocations: 34.89 kB / 0.5243 GB, free: 11.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.3613, allocations: 229.6 kB / 0.5245 GB, free: 11.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.3615, allocations: 149.1 kB / 0.5247 GB, free: 11.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.3616, allocations: 82.59 kB / 0.5247 GB, free: 11.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3617, allocations: 350 kB / 0.5251 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.362, allocations: 180.2 kB / 0.5253 GB, free: 11.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.3624, allocations: 288.3 kB / 0.5255 GB, free: 10.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006657/0.3631, allocations: 0.5074 MB / 0.526 GB, free: 10.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3631, allocations: 1.062 kB / 0.526 GB, free: 10.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001194/0.3643, allocations: 0.6835 MB / 0.5267 GB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3643, allocations: 8.422 kB / 0.5267 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3643, allocations: 2.594 kB / 0.5267 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005717/0.3649, allocations: 177.4 kB / 0.5269 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/0.3653, allocations: 97.58 kB / 0.527 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003414/0.3687, allocations: 2.782 MB / 0.5297 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.369, allocations: 22.12 kB / 0.5297 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.369, allocations: 24.19 kB / 0.5297 GB, free: 8.289 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.0002406/0.3693, allocations: 195.9 kB / 0.5299 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.458e-05/0.3693, allocations: 37.47 kB / 0.5299 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.3705, allocations: 0.6345 MB / 0.5306 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.3706, allocations: 6.953 kB / 0.5306 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.3706, allocations: 0 / 0.5306 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.3706, allocations: 6.141 kB / 0.5306 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.3728, allocations: 1.352 MB / 0.5319 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3728, allocations: 1.062 kB / 0.5319 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003586/0.3732, allocations: 84.19 kB / 0.532 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000485/0.3737, allocations: 142.9 kB / 0.5321 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/0.3737, allocations: 12.98 kB / 0.5321 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/0.3767, allocations: 2.568 MB / 0.5346 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.3767, allocations: 5.438 kB / 0.5346 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.3781, allocations: 0.9546 MB / 0.5356 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3783, allocations: 107.9 kB / 0.5357 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.527e-05/0.3783, allocations: 15.38 kB / 0.5357 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.3786, allocations: 17.64 kB / 0.5357 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.3786, allocations: 31.3 kB / 0.5357 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.3787, allocations: 13.16 kB / 0.5358 GB, free: 4.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.3789, allocations: 200 kB / 0.5359 GB, free: 4.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3789, allocations: 0 / 0.5359 GB, free: 4.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006854/0.3796, allocations: 139 kB / 0.5361 GB, free: 4.055 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.0001269/0.3797, allocations: 107.3 kB / 0.5362 GB, free: 3.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.381, allocations: 0.6804 MB / 0.5368 GB, free: 3.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.381, allocations: 0 / 0.5368 GB, free: 3.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000692/0.3817, allocations: 429.8 kB / 0.5373 GB, free: 3.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.3822, allocations: 70.81 kB / 0.5373 GB, free: 3.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.3842, allocations: 1.182 MB / 0.5385 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.3847, allocations: 0.8707 MB / 0.5393 GB, free: 1.672 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3848, allocations: 35.7 kB / 0.5394 GB, free: 1.66 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3848, allocations: 1.312 kB / 0.5394 GB, free: 1.66 MB / 398.1 MB Notification: Performance of Templates: time 0.01185/0.3966, allocations: 6.93 MB / 0.5461 GB, free: 13.24 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches