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.001535/0.001535, allocations: 116.6 kB / 17.06 MB, free: 5.996 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.001556/0.001556, allocations: 198.8 kB / 18 MB, free: 5.074 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.91 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.3952, allocations: 58.06 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006025/0.4013, allocations: 4.922 MB / 0.5089 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003305/0.4046, allocations: 2.475 MB / 0.5113 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002827/0.405, allocations: 13.81 kB / 0.5113 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.4062, allocations: 440.6 kB / 0.5118 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001128/0.4073, allocations: 0.506 MB / 0.5123 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008009/0.4081, allocations: 280.7 kB / 0.5125 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000854/0.409, allocations: 0.7451 MB / 0.5132 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000518/0.4095, allocations: 331.1 kB / 0.5136 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004263/0.4099, allocations: 328.2 kB / 0.5139 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004645/0.4104, allocations: 330.1 kB / 0.5142 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.639e-05/0.4105, allocations: 39.72 kB / 0.5142 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001111/0.4116, allocations: 0.6295 MB / 0.5148 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.4119, allocations: 197.9 kB / 0.515 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.4122, allocations: 245.8 kB / 0.5153 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.4133, allocations: 0.7641 MB / 0.516 GB, free: 404 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.4133, allocations: 0 / 0.516 GB, free: 404 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.4134, allocations: 0 / 0.516 GB, free: 404 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.4134, allocations: 1.312 kB / 0.516 GB, free: 404 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.001358/0.4147, allocations: 0.7717 MB / 0.5168 GB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.4148, allocations: 13.45 kB / 0.5168 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001985/0.4168, allocations: 202.7 kB / 0.517 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006697/0.4175, allocations: 373.5 kB / 0.5173 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/0.4175, allocations: 30.61 kB / 0.5174 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.4177, allocations: 47.64 kB / 0.5174 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.4189, allocations: 0.6234 MB / 0.518 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.4189, allocations: 5.766 kB / 0.518 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.223e-05/0.419, allocations: 20.28 kB / 0.518 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.235e-05/0.419, allocations: 36.95 kB / 0.5181 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.42, allocations: 0.613 MB / 0.5187 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.4235, allocations: 2.241 MB / 0.5209 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/0.4243, allocations: 489.6 kB / 0.5213 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000353/0.4246, allocations: 235.2 kB / 0.5216 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.059e-05/0.4247, allocations: 5.578 kB / 0.5216 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.4247, allocations: 41.52 kB / 0.5216 GB, free: 13.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.264e-06/0.4247, allocations: 0 / 0.5216 GB, free: 13.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.00378/0.4285, allocations: 1.7 MB / 0.5233 GB, free: 12.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.4286, allocations: 83.2 kB / 0.5233 GB, free: 12.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/0.429, allocations: 288.2 kB / 0.5236 GB, free: 11.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.948e-05/0.429, allocations: 35.7 kB / 0.5236 GB, free: 11.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.4292, allocations: 228.1 kB / 0.5239 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.4294, allocations: 157.7 kB / 0.524 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.4295, allocations: 85.64 kB / 0.5241 GB, free: 11.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.4297, allocations: 350 kB / 0.5244 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.43, allocations: 176.4 kB / 0.5246 GB, free: 11.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.4305, allocations: 292.9 kB / 0.5249 GB, free: 10.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007866/0.4313, allocations: 0.5041 MB / 0.5254 GB, free: 10.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4313, allocations: 2.125 kB / 0.5254 GB, free: 10.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001219/0.4325, allocations: 0.6798 MB / 0.526 GB, free: 10.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.4325, allocations: 6.875 kB / 0.526 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.4326, allocations: 3.422 kB / 0.526 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005885/0.4332, allocations: 180.5 kB / 0.5262 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.4335, allocations: 98.23 kB / 0.5263 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004232/0.4378, allocations: 2.781 MB / 0.529 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.4381, allocations: 22.06 kB / 0.529 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.4381, allocations: 20.44 kB / 0.5291 GB, free: 8.305 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.0002897/0.4384, allocations: 199.9 kB / 0.5293 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.344e-05/0.4385, allocations: 41.05 kB / 0.5293 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.4398, allocations: 0.6338 MB / 0.5299 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.4398, allocations: 6.516 kB / 0.5299 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.4399, allocations: 1.844 kB / 0.5299 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.4399, allocations: 9.953 kB / 0.5299 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.4424, allocations: 1.343 MB / 0.5312 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4424, allocations: 1.125 kB / 0.5312 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/0.4428, allocations: 78.08 kB / 0.5313 GB, free: 7.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005034/0.4433, allocations: 145.6 kB / 0.5315 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.4433, allocations: 8.5 kB / 0.5315 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003144/0.4465, allocations: 2.561 MB / 0.534 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.4465, allocations: 5.203 kB / 0.534 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.4481, allocations: 0.9629 MB / 0.5349 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/0.4483, allocations: 107.5 kB / 0.535 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.439e-05/0.4483, allocations: 15.19 kB / 0.535 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.4486, allocations: 17.38 kB / 0.535 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.4487, allocations: 32.02 kB / 0.5351 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.4487, allocations: 13.86 kB / 0.5351 GB, free: 4.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00025/0.449, allocations: 196.2 kB / 0.5353 GB, free: 4.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.449, allocations: 0 / 0.5353 GB, free: 4.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008263/0.4498, allocations: 138.1 kB / 0.5354 GB, free: 4.035 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.0001515/0.45, allocations: 115.6 kB / 0.5355 GB, free: 3.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.4515, allocations: 0.684 MB / 0.5362 GB, free: 3.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4516, allocations: 5.188 kB / 0.5362 GB, free: 3.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007929/0.4524, allocations: 421 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.0005691/0.4529, allocations: 69.61 kB / 0.5367 GB, free: 3.238 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.4553, allocations: 1.132 MB / 0.5378 GB, free: 2.484 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006257/0.456, allocations: 0.871 MB / 0.5386 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.4562, allocations: 69.67 kB / 0.5387 GB, free: 1.672 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.4563, allocations: 33.92 kB / 0.5387 GB, free: 1.66 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4563, allocations: 0 / 0.5387 GB, free: 1.66 MB / 398.1 MB Notification: Performance of Templates: time 0.01222/0.4686, allocations: 5.829 MB / 0.5444 GB, free: 14.33 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