Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 110.8 kB / 17.06 MB, free: 6.008 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.001282/0.001282, allocations: 191 kB / 18 MB, free: 5.09 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.474/1.474, 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.1777/0.1777, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 59.89 kB / 458.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4423/0.4444, allocations: 58.04 MB / 0.5041 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006336/0.4507, allocations: 4.081 MB / 0.5081 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.4525, allocations: 0.8479 MB / 0.5089 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.4527, allocations: 14.62 kB / 0.5089 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.4529, allocations: 48.66 kB / 0.509 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004507/0.4534, allocations: 164.3 kB / 0.5091 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.4536, allocations: 84.09 kB / 0.5092 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.454, allocations: 403.7 kB / 0.5096 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.4542, allocations: 113.7 kB / 0.5097 GB, free: 4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.4545, allocations: 184.8 kB / 0.5099 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003186/0.4548, allocations: 177.6 kB / 0.5101 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.244e-05/0.4549, allocations: 21.28 kB / 0.5101 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.868e-05/0.4549, allocations: 20.88 kB / 0.5101 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.455, allocations: 87.83 kB / 0.5102 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.4552, allocations: 140.5 kB / 0.5103 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004622/0.4557, allocations: 286.6 kB / 0.5106 GB, free: 3.605 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4557, allocations: 4.75 kB / 0.5106 GB, free: 3.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4557, allocations: 0 / 0.5106 GB, free: 3.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.4557, allocations: 1.156 kB / 0.5106 GB, free: 3.602 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001115/0.4568, allocations: 0.5989 MB / 0.5112 GB, free: 3.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.4569, allocations: 12.36 kB / 0.5112 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.492e-05/0.457, allocations: 41.19 kB / 0.5112 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005804/0.4576, allocations: 336 kB / 0.5115 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.4576, allocations: 19.44 kB / 0.5116 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.4578, allocations: 35.55 kB / 0.5116 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.4582, allocations: 292.8 kB / 0.5119 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.4582, allocations: 1.312 kB / 0.5119 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.4583, allocations: 15.06 kB / 0.5119 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.4583, allocations: 5.094 kB / 0.5119 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.4586, allocations: 186.1 kB / 0.5121 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001404/0.46, allocations: 1.273 MB / 0.5133 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.4603, allocations: 123.7 kB / 0.5134 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.223e-05/0.4604, allocations: 50.75 kB / 0.5135 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.4604, allocations: 5.438 kB / 0.5135 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.4605, allocations: 33.02 kB / 0.5135 GB, free: 1.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.4605, allocations: 0 / 0.5135 GB, free: 1.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008819/0.4613, allocations: 0.526 MB / 0.514 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.4614, allocations: 108.9 kB / 0.5141 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.4617, allocations: 248.8 kB / 0.5144 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.4617, allocations: 25.7 kB / 0.5144 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.4618, allocations: 198.8 kB / 0.5146 GB, free: 396 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.4619, allocations: 40.72 kB / 0.5146 GB, free: 364 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.116e-05/0.4619, allocations: 45.69 kB / 0.5147 GB, free: 332 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.403e-05/0.462, allocations: 334.2 kB / 0.515 GB, free: 0 / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.4621, allocations: 41.52 kB / 0.515 GB, free: 15.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.4623, allocations: 129.5 kB / 0.5152 GB, free: 15.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.4626, allocations: 195.1 kB / 0.5153 GB, free: 15.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4626, allocations: 1.344 kB / 0.5153 GB, free: 15.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004606/0.4631, allocations: 229.7 kB / 0.5156 GB, free: 15.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4631, allocations: 6.281 kB / 0.5156 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4631, allocations: 4.125 kB / 0.5156 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001406/0.4632, allocations: 25.72 kB / 0.5156 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.4636, allocations: 69.06 kB / 0.5157 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.4636, allocations: 8.781 kB / 0.5157 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.4637, allocations: 8.391 kB / 0.5157 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.4638, allocations: 10.36 kB / 0.5157 GB, free: 15.52 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.4639, allocations: 151.6 kB / 0.5158 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.037e-05/0.464, allocations: 25.88 kB / 0.5159 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.4643, allocations: 143.1 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.4643, allocations: 6.125 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4643, allocations: 1 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.4643, allocations: 2.297 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004195/0.4648, allocations: 287.4 kB / 0.5163 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4648, allocations: 5.062 kB / 0.5163 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.465, allocations: 31.17 kB / 0.5163 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.465, allocations: 1.375 kB / 0.5163 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.465, allocations: 3.016 kB / 0.5163 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.465, allocations: 5.672 kB / 0.5163 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.465, allocations: 0.7812 kB / 0.5163 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004098/0.4654, allocations: 373.4 kB / 0.5167 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.561e-05/0.4655, allocations: 95.41 kB / 0.5168 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.4655, allocations: 6.141 kB / 0.5168 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.4657, allocations: 6.125 kB / 0.5168 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.178e-05/0.4657, allocations: 20.12 kB / 0.5168 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.4657, allocations: 4.578 kB / 0.5168 GB, free: 14.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.4659, allocations: 171 kB / 0.517 GB, free: 14.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4659, allocations: 0 / 0.517 GB, free: 14.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.4663, allocations: 45.38 kB / 0.517 GB, free: 14.52 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0001248/0.4664, allocations: 103.2 kB / 0.5171 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.4668, allocations: 213.2 kB / 0.5173 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4668, allocations: 1.125 kB / 0.5173 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.101e-05/0.4669, allocations: 50.09 kB / 0.5174 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005544/0.4674, allocations: 56.16 kB / 0.5174 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.4686, allocations: 0.593 MB / 0.518 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.469, allocations: 0.7696 MB / 0.5187 GB, free: 13.14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.4692, allocations: 30.92 kB / 0.5188 GB, free: 13.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.153e-05/0.4692, allocations: 25.72 kB / 0.5188 GB, free: 13.12 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4692, allocations: 4.5 kB / 0.5188 GB, free: 13.12 MB / 398.1 MB Notification: Performance of Templates: time 0.006382/0.4756, allocations: 2.22 MB / 0.521 GB, free: 12.93 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches