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.001343/0.001343, allocations: 99.22 kB / 17.73 MB, free: 5.324 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.001466/0.001466, allocations: 192.2 kB / 18.67 MB, free: 4.395 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.366/1.366, 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.1761/0.1761, allocations: 38.04 MB / 330.6 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 64.08 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3414, allocations: 58.06 MB / 0.5048 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004287/0.3458, allocations: 3.474 MB / 0.5082 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.3475, allocations: 1.489 MB / 0.5096 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.3477, allocations: 9.156 kB / 0.5096 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00076/0.3484, allocations: 258.2 kB / 0.5099 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005695/0.349, allocations: 290 kB / 0.5101 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003146/0.3493, allocations: 122.2 kB / 0.5103 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003958/0.3497, allocations: 345.1 kB / 0.5106 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002971/0.35, allocations: 136.8 kB / 0.5107 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002355/0.3503, allocations: 152.4 kB / 0.5109 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.3505, allocations: 156.1 kB / 0.511 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.3506, allocations: 14.28 kB / 0.511 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005028/0.3511, allocations: 334.4 kB / 0.5113 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.3512, allocations: 101.3 kB / 0.5114 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.3513, allocations: 104.1 kB / 0.5115 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005067/0.3518, allocations: 368.1 kB / 0.5119 GB, free: 3.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3518, allocations: 0 / 0.5119 GB, free: 3.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3518, allocations: 1.031 kB / 0.5119 GB, free: 3.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.3519, allocations: 0 / 0.5119 GB, free: 3.234 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.0006023/0.3525, allocations: 0.51 MB / 0.5124 GB, free: 2.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3525, allocations: 9.062 kB / 0.5124 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009132/0.3534, allocations: 93.66 kB / 0.5125 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.3537, allocations: 266.1 kB / 0.5127 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3537, allocations: 19.73 kB / 0.5128 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/0.3538, allocations: 16.91 kB / 0.5128 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.3543, allocations: 314.5 kB / 0.5131 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.3543, allocations: 1.312 kB / 0.5131 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.3544, allocations: 18.53 kB / 0.5131 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.762e-05/0.3544, allocations: 20.59 kB / 0.5131 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004256/0.3548, allocations: 293.4 kB / 0.5134 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.3563, allocations: 1.262 MB / 0.5146 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.3568, allocations: 234.9 kB / 0.5149 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.3569, allocations: 96.7 kB / 0.5149 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.357, allocations: 2.375 kB / 0.5149 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.357, allocations: 36.72 kB / 0.515 GB, free: 1.094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.357, allocations: 1.438 kB / 0.515 GB, free: 1.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007757/0.3578, allocations: 435.2 kB / 0.5154 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.3578, allocations: 92.19 kB / 0.5155 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.358, allocations: 205.3 kB / 0.5157 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.358, allocations: 25.7 kB / 0.5157 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.638e-05/0.3581, allocations: 156.9 kB / 0.5159 GB, free: 492 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.336e-05/0.3581, allocations: 56.38 kB / 0.5159 GB, free: 448 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.3582, allocations: 48.97 kB / 0.516 GB, free: 416 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.308e-05/0.3583, allocations: 328.5 kB / 0.5163 GB, free: 88 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.3584, allocations: 85.52 kB / 0.5163 GB, free: 60 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3586, allocations: 159.1 kB / 0.5165 GB, free: 15.94 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.3589, allocations: 270.6 kB / 0.5168 GB, free: 15.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.359, allocations: 1.219 kB / 0.5168 GB, free: 15.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006232/0.3596, allocations: 297.6 kB / 0.517 GB, free: 15.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.3596, allocations: 6.594 kB / 0.5171 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3596, allocations: 1.906 kB / 0.5171 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.3597, allocations: 8.094 kB / 0.5171 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.36, allocations: 56.25 kB / 0.5171 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.3601, allocations: 4.391 kB / 0.5171 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.3602, allocations: 15.09 kB / 0.5171 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.3603, allocations: 13.25 kB / 0.5171 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.0001684/0.3604, allocations: 155.6 kB / 0.5173 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.3605, allocations: 16.47 kB / 0.5173 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004268/0.3609, allocations: 227 kB / 0.5175 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3609, allocations: 3.219 kB / 0.5175 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3609, allocations: 4 kB / 0.5175 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.361, allocations: 6.422 kB / 0.5175 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.3624, allocations: 0.9567 MB / 0.5185 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3624, allocations: 4.812 kB / 0.5185 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.3626, allocations: 35.81 kB / 0.5185 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.3626, allocations: 5.688 kB / 0.5185 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.3626, allocations: 6.547 kB / 0.5185 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.119e-05/0.3626, allocations: 14.67 kB / 0.5185 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.3627, allocations: 7.75 kB / 0.5185 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004173/0.3631, allocations: 417.9 kB / 0.5189 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.304e-05/0.3631, allocations: 94.73 kB / 0.519 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.964e-05/0.3632, allocations: 11.55 kB / 0.519 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.3634, allocations: 21.12 kB / 0.5191 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.3634, allocations: 17.5 kB / 0.5191 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.3634, allocations: 17.75 kB / 0.5191 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.3636, allocations: 146 kB / 0.5192 GB, free: 14.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3636, allocations: 0 / 0.5192 GB, free: 14.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004068/0.364, allocations: 54.53 kB / 0.5193 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.0001132/0.3641, allocations: 107.6 kB / 0.5194 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.3645, allocations: 226 kB / 0.5196 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3645, allocations: 0 / 0.5196 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.3647, allocations: 98.03 kB / 0.5197 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.3651, allocations: 40.2 kB / 0.5197 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009454/0.3661, allocations: 0.6048 MB / 0.5203 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.3664, allocations: 0.7594 MB / 0.5211 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.77e-05/0.3665, allocations: 25.36 kB / 0.5211 GB, free: 12.75 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3665, allocations: 4 kB / 0.5211 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Templates: time 0.004829/0.3714, allocations: 2.649 MB / 0.5237 GB, free: 12.52 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches