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.001272/0.001272, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001193/0.001193, allocations: 176.5 kB / 18.66 MB, free: 4.449 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.375/1.375, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1897/0.1897, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 67.89 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3848, allocations: 58.05 MB / 0.5047 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.01/0.3949, allocations: 5.442 MB / 0.5101 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.3979, allocations: 1.096 MB / 0.5111 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.3983, allocations: 18.38 kB / 0.5112 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.3986, allocations: 78.78 kB / 0.5112 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008713/0.3995, allocations: 301.8 kB / 0.5115 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.4, allocations: 141.5 kB / 0.5116 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.4011, allocations: 0.7018 MB / 0.5123 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.4016, allocations: 181 kB / 0.5125 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007791/0.4024, allocations: 315.6 kB / 0.5128 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008768/0.4032, allocations: 328.9 kB / 0.5131 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001745/0.4034, allocations: 37.28 kB / 0.5132 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002471/0.4037, allocations: 33.84 kB / 0.5132 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002852/0.404, allocations: 157.8 kB / 0.5133 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005348/0.4045, allocations: 242.3 kB / 0.5136 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008549/0.4054, allocations: 495 kB / 0.514 GB, free: 1.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4054, allocations: 0 / 0.514 GB, free: 1.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4054, allocations: 0 / 0.514 GB, free: 1.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.961e-05/0.4055, allocations: 1.156 kB / 0.514 GB, free: 1.754 MB / 382.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.001935/0.4074, allocations: 0.7943 MB / 0.5148 GB, free: 1.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.4075, allocations: 9.891 kB / 0.5148 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.4076, allocations: 52.75 kB / 0.5149 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008105/0.4084, allocations: 462.8 kB / 0.5153 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.4085, allocations: 30.33 kB / 0.5153 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-05/0.4086, allocations: 37.41 kB / 0.5154 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008266/0.4094, allocations: 462.4 kB / 0.5158 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.4094, allocations: 5.516 kB / 0.5158 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.4095, allocations: 15.19 kB / 0.5158 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.4095, allocations: 9.969 kB / 0.5159 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005812/0.4101, allocations: 303.7 kB / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.4126, allocations: 1.763 MB / 0.5179 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.413, allocations: 144.7 kB / 0.518 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.4131, allocations: 57.66 kB / 0.5181 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.4131, allocations: 10.09 kB / 0.5181 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.4132, allocations: 37.69 kB / 0.5181 GB, free: 14.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.4132, allocations: 4 kB / 0.5181 GB, free: 14.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001192/0.4144, allocations: 0.5989 MB / 0.5187 GB, free: 14.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.4145, allocations: 105.6 kB / 0.5188 GB, free: 14.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005662/0.415, allocations: 375 kB / 0.5192 GB, free: 14.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.4151, allocations: 31.05 kB / 0.5192 GB, free: 13.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.4154, allocations: 283 kB / 0.5195 GB, free: 13.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-05/0.4154, allocations: 56.41 kB / 0.5195 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.713e-05/0.4155, allocations: 60.25 kB / 0.5196 GB, free: 13.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4157, allocations: 347.9 kB / 0.5199 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.4158, allocations: 49.33 kB / 0.5199 GB, free: 13.33 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.416, allocations: 198.1 kB / 0.5201 GB, free: 13.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.4164, allocations: 267.6 kB / 0.5204 GB, free: 12.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.4165, allocations: 5.031 kB / 0.5204 GB, free: 12.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006182/0.4171, allocations: 288.6 kB / 0.5207 GB, free: 12.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.4171, allocations: 8.062 kB / 0.5207 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.4171, allocations: 5.391 kB / 0.5207 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.4172, allocations: 7.031 kB / 0.5207 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.4174, allocations: 72.47 kB / 0.5208 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.015e-05/0.4175, allocations: 12.59 kB / 0.5208 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.4177, allocations: 19.19 kB / 0.5208 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.4177, allocations: 21.16 kB / 0.5208 GB, free: 12.69 MB / 398.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.0003514/0.4181, allocations: 179.7 kB / 0.521 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-05/0.4181, allocations: 36.23 kB / 0.521 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003154/0.4185, allocations: 166.2 kB / 0.5212 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.4185, allocations: 2.219 kB / 0.5212 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.4185, allocations: 1.156 kB / 0.5212 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4185, allocations: 2.047 kB / 0.5212 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008269/0.4193, allocations: 0.5366 MB / 0.5217 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.4194, allocations: 2.219 kB / 0.5217 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.4196, allocations: 31.73 kB / 0.5217 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.4196, allocations: 6.062 kB / 0.5217 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.4196, allocations: 3.078 kB / 0.5217 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.4196, allocations: 1.062 kB / 0.5217 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.4196, allocations: 7.234 kB / 0.5217 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004709/0.4201, allocations: 397.8 kB / 0.5221 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.4202, allocations: 113.3 kB / 0.5222 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.898e-05/0.4203, allocations: 10.55 kB / 0.5222 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.4204, allocations: 9.062 kB / 0.5223 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.023e-05/0.4205, allocations: 11.56 kB / 0.5223 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.4205, allocations: 8.344 kB / 0.5223 GB, free: 11.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003021/0.4208, allocations: 255.3 kB / 0.5225 GB, free: 11.44 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4208, allocations: 0 / 0.5225 GB, free: 11.44 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004385/0.4212, allocations: 73.84 kB / 0.5226 GB, free: 11.43 MB / 398.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.0001936/0.4214, allocations: 98.78 kB / 0.5227 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000334/0.4218, allocations: 162.7 kB / 0.5228 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4218, allocations: 5.594 kB / 0.5228 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.4219, allocations: 53.73 kB / 0.5229 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007566/0.4227, allocations: 92.84 kB / 0.523 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.4243, allocations: 0.9144 MB / 0.5239 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.4248, allocations: 0.8423 MB / 0.5247 GB, free: 9.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.496e-05/0.4249, allocations: 34.59 kB / 0.5247 GB, free: 9.922 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4249, allocations: 0 / 0.5247 GB, free: 9.922 MB / 398.1 MB Notification: Performance of Templates: time 0.008663/0.4335, allocations: 4.644 MB / 0.5293 GB, free: 9.047 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches