Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00181/0.001811, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.345/1.345, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1707/0.1707, allocations: 38.05 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 57.58 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09356/0.09498, allocations: 58.06 MB / 456.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008459/0.1035, allocations: 5.433 MB / 462.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.1059, allocations: 1.114 MB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004675/0.1064, allocations: 19.88 kB / 463.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003842/0.1068, allocations: 79.22 kB / 463.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.1079, allocations: 298.3 kB / 463.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000437/0.1083, allocations: 139.8 kB / 463.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.1094, allocations: 0.6967 MB / 464.6 MB, free: 260 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003412/0.1098, allocations: 172.7 kB / 464.8 MB, free: 80 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006014/0.1104, allocations: 306.6 kB / 465.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000735/0.1111, allocations: 326.8 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.462e-05/0.1112, allocations: 32 kB / 465.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.174e-05/0.1113, allocations: 36 kB / 465.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.1115, allocations: 159.5 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002586/0.1117, allocations: 242.7 kB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005436/0.1123, allocations: 490.2 kB / 466.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1123, allocations: 4 kB / 466.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1123, allocations: 0 / 466.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.1123, allocations: 0 / 466.4 MB, free: 14.51 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001284/0.1136, allocations: 0.7852 MB / 467.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1137, allocations: 8.031 kB / 467.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.417e-05/0.1138, allocations: 60.22 kB / 467.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.1144, allocations: 432.2 kB / 467.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.1144, allocations: 28.94 kB / 467.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.425e-05/0.1145, allocations: 36 kB / 467.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006308/0.1151, allocations: 463.6 kB / 468.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1151, allocations: 3.938 kB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.1152, allocations: 16 kB / 468.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.1152, allocations: 8 kB / 468.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.1157, allocations: 308.7 kB / 468.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00199/0.1177, allocations: 1.767 MB / 470.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.1179, allocations: 139.6 kB / 470.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.115e-05/0.118, allocations: 66.66 kB / 470.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.1181, allocations: 0 / 470.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.1181, allocations: 38.5 kB / 470.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.1181, allocations: 0 / 470.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001045/0.1192, allocations: 0.608 MB / 471.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.1192, allocations: 106.8 kB / 471.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.1196, allocations: 369.5 kB / 471.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.1196, allocations: 29.7 kB / 471.6 MB, free: 8.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.1198, allocations: 287.3 kB / 471.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.1199, allocations: 51.2 kB / 471.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.432e-05/0.12, allocations: 61.61 kB / 472 MB, free: 8.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1201, allocations: 350.8 kB / 472.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.805e-05/0.1202, allocations: 51.97 kB / 472.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.1204, allocations: 198.5 kB / 472.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.1207, allocations: 258.6 kB / 472.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1207, allocations: 4 kB / 472.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003974/0.1211, allocations: 289.3 kB / 473.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1211, allocations: 12.06 kB / 473.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1211, allocations: 7.984 kB / 473.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.1211, allocations: 8 kB / 473.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.1214, allocations: 63.91 kB / 473.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.1214, allocations: 16.36 kB / 473.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.1215, allocations: 8 kB / 473.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.1216, allocations: 20 kB / 473.2 MB, free: 7.094 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000168/0.1217, allocations: 181.6 kB / 473.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.082e-05/0.1218, allocations: 39.47 kB / 473.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003252/0.1222, allocations: 180.6 kB / 473.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1222, allocations: 4 kB / 473.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1222, allocations: 0 / 473.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1222, allocations: 0 / 473.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006671/0.1229, allocations: 0.5307 MB / 474.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1229, allocations: 3.984 kB / 474.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.1231, allocations: 35.98 kB / 474.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1231, allocations: 4.031 kB / 474.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.1231, allocations: 8 kB / 474.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1231, allocations: 3.938 kB / 474.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1231, allocations: 3.938 kB / 474.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000401/0.1235, allocations: 401.3 kB / 474.6 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.647e-05/0.1236, allocations: 116.6 kB / 474.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.163e-05/0.1236, allocations: 4 kB / 474.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.1238, allocations: 7.938 kB / 474.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.057e-05/0.1238, allocations: 15.97 kB / 474.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.1239, allocations: 8 kB / 474.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002201/0.1241, allocations: 251.2 kB / 475 MB, free: 5.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1241, allocations: 0 / 475 MB, free: 5.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.1245, allocations: 72 kB / 475.1 MB, free: 5.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001002/0.1246, allocations: 111.2 kB / 475.2 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002692/0.1249, allocations: 155.6 kB / 475.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1249, allocations: 1.25 kB / 475.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.651e-05/0.125, allocations: 59.91 kB / 475.4 MB, free: 4.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006689/0.1256, allocations: 102.9 kB / 475.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.1269, allocations: 0.8719 MB / 476.4 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.1272, allocations: 0.8387 MB / 477.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001562/0.1274, allocations: 55.25 kB / 477.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.429e-05/0.1275, allocations: 27.44 kB / 477.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1275, allocations: 0 / 477.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Templates: time 0.006649/0.1341, allocations: 3.241 MB / 480.5 MB, free: 15.66 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches