Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001542/0.001541, allocations: 112 kB / 17.06 MB, free: 5.992 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.001596/0.001596, allocations: 194.9 kB / 18.01 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.493/1.493, allocations: 222.9 MB / 241.7 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.2123/0.2123, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 59.91 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4133/0.4146, allocations: 58.07 MB / 0.5041 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005169/0.4198, allocations: 3.462 MB / 0.5075 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.4219, allocations: 1.5 MB / 0.509 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.422, allocations: 12.88 kB / 0.509 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000813/0.4228, allocations: 253.5 kB / 0.5092 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005741/0.4234, allocations: 282.3 kB / 0.5095 GB, free: 4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.4237, allocations: 125.7 kB / 0.5096 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004195/0.4242, allocations: 340.5 kB / 0.5099 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003294/0.4245, allocations: 139.2 kB / 0.5101 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002345/0.4247, allocations: 150.6 kB / 0.5102 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.425, allocations: 152 kB / 0.5103 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.195e-05/0.425, allocations: 14 kB / 0.5104 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000569/0.4256, allocations: 330.8 kB / 0.5107 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.4258, allocations: 100.8 kB / 0.5108 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.4259, allocations: 112.7 kB / 0.5109 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006526/0.4266, allocations: 362.1 kB / 0.5112 GB, free: 3.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.4266, allocations: 0.9688 kB / 0.5112 GB, free: 3.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4266, allocations: 0 / 0.5112 GB, free: 3.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.4266, allocations: 0 / 0.5112 GB, free: 3.258 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007808/0.4274, allocations: 0.5137 MB / 0.5117 GB, free: 2.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.4274, allocations: 9.25 kB / 0.5117 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.4285, allocations: 93.64 kB / 0.5118 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.4288, allocations: 278.7 kB / 0.5121 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.4289, allocations: 10.97 kB / 0.5121 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-05/0.4289, allocations: 19.62 kB / 0.5121 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.4295, allocations: 326.6 kB / 0.5124 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.4296, allocations: 1.531 kB / 0.5124 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.4296, allocations: 8.906 kB / 0.5124 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.657e-05/0.4296, allocations: 21.58 kB / 0.5125 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005013/0.4302, allocations: 298.1 kB / 0.5127 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.4318, allocations: 1.262 MB / 0.514 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.4323, allocations: 230.7 kB / 0.5142 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.4324, allocations: 96.94 kB / 0.5143 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.4325, allocations: 9.234 kB / 0.5143 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.4325, allocations: 37.72 kB / 0.5143 GB, free: 1.098 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.4325, allocations: 0 / 0.5143 GB, free: 1.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009447/0.4335, allocations: 449 kB / 0.5148 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.4335, allocations: 83.94 kB / 0.5148 GB, free: 0.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.4337, allocations: 200.4 kB / 0.515 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.4337, allocations: 26.45 kB / 0.5151 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.4338, allocations: 161.9 kB / 0.5152 GB, free: 496 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.393e-05/0.4339, allocations: 56.62 kB / 0.5153 GB, free: 452 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.952e-05/0.434, allocations: 52.5 kB / 0.5153 GB, free: 416 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.105e-05/0.434, allocations: 328.9 kB / 0.5156 GB, free: 88 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.4342, allocations: 88.55 kB / 0.5157 GB, free: 56 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.4344, allocations: 155.3 kB / 0.5159 GB, free: 15.94 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.4348, allocations: 263.6 kB / 0.5161 GB, free: 15.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4348, allocations: 5.375 kB / 0.5161 GB, free: 15.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000549/0.4353, allocations: 288.4 kB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.4354, allocations: 6.938 kB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.4354, allocations: 2.312 kB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.599e-05/0.4354, allocations: 7.375 kB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003769/0.4358, allocations: 57.48 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.321e-05/0.4359, allocations: 8.625 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.436, allocations: 22.7 kB / 0.5165 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.4361, allocations: 13.08 kB / 0.5165 GB, free: 15.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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.000227/0.4363, allocations: 159.1 kB / 0.5167 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-05/0.4364, allocations: 21.08 kB / 0.5167 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005654/0.437, allocations: 227.3 kB / 0.5169 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.437, allocations: 3 kB / 0.5169 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.437, allocations: 0 / 0.5169 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.437, allocations: 6.219 kB / 0.5169 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.4392, allocations: 0.953 MB / 0.5178 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.4392, allocations: 3.312 kB / 0.5178 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.4394, allocations: 37.39 kB / 0.5179 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.828e-05/0.4395, allocations: 5.531 kB / 0.5179 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.4395, allocations: 10.78 kB / 0.5179 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.221e-05/0.4395, allocations: 12.83 kB / 0.5179 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.642e-05/0.4396, allocations: 9.094 kB / 0.5179 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007261/0.4403, allocations: 411.3 kB / 0.5183 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.4404, allocations: 99.52 kB / 0.5184 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.4405, allocations: 11.58 kB / 0.5184 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.4407, allocations: 11.89 kB / 0.5184 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.4407, allocations: 26.58 kB / 0.5184 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/0.4408, allocations: 13.59 kB / 0.5185 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.441, allocations: 145.8 kB / 0.5186 GB, free: 14.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.441, allocations: 0 / 0.5186 GB, free: 14.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000511/0.4416, allocations: 54.56 kB / 0.5187 GB, free: 14.12 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 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.0002063/0.4418, allocations: 108.9 kB / 0.5188 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000405/0.4422, allocations: 229.8 kB / 0.519 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.4422, allocations: 5.156 kB / 0.519 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.4424, allocations: 95.84 kB / 0.5191 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004561/0.4428, allocations: 33.19 kB / 0.5191 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009887/0.4438, allocations: 0.5701 MB / 0.5197 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.4444, allocations: 0.7627 MB / 0.5204 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002057/0.4446, allocations: 50.41 kB / 0.5205 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.112e-05/0.4447, allocations: 22.98 kB / 0.5205 GB, free: 12.78 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4447, allocations: 0 / 0.5205 GB, free: 12.78 MB / 398.1 MB Notification: Performance of Templates: time 0.005788/0.4505, allocations: 1.917 MB / 0.5223 GB, free: 12.6 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches