Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 103.8 kB / 17.74 MB, free: 5.188 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.002223/0.002223, allocations: 192.2 kB / 18.67 MB, free: 4.266 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.04 MB / 330.6 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 63.91 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3482, allocations: 58.05 MB / 0.5048 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005115/0.3534, allocations: 4.187 MB / 0.5089 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.355, allocations: 0.9418 MB / 0.5098 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.3552, allocations: 14.81 kB / 0.5098 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002074/0.3555, allocations: 52.53 kB / 0.5098 GB, free: 4.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005673/0.3561, allocations: 201.8 kB / 0.51 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.3564, allocations: 101.7 kB / 0.5101 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005621/0.3569, allocations: 479.7 kB / 0.5106 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.3572, allocations: 151.7 kB / 0.5107 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.3575, allocations: 214.3 kB / 0.5109 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004278/0.358, allocations: 246.9 kB / 0.5112 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.102e-05/0.358, allocations: 30.94 kB / 0.5112 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.563e-05/0.3581, allocations: 26.75 kB / 0.5112 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.3583, allocations: 125 kB / 0.5113 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.3585, allocations: 182.8 kB / 0.5115 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.3589, allocations: 380 kB / 0.5119 GB, free: 3.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3589, allocations: 0.75 kB / 0.5119 GB, free: 3.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3589, allocations: 1.406 kB / 0.5119 GB, free: 3.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.359, allocations: 0 / 0.5119 GB, free: 3.164 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001226/0.3602, allocations: 0.6969 MB / 0.5126 GB, free: 2.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3602, allocations: 13.7 kB / 0.5126 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.14e-05/0.3603, allocations: 39.38 kB / 0.5126 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005809/0.3609, allocations: 400.7 kB / 0.513 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.3609, allocations: 19.06 kB / 0.513 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.361, allocations: 25.8 kB / 0.513 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/0.3616, allocations: 361.2 kB / 0.5134 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3616, allocations: 1.75 kB / 0.5134 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.3616, allocations: 11.69 kB / 0.5134 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.3616, allocations: 6.469 kB / 0.5134 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000417/0.3621, allocations: 259.3 kB / 0.5137 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.3637, allocations: 1.45 MB / 0.5151 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.3639, allocations: 158.1 kB / 0.5152 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.364, allocations: 84.62 kB / 0.5153 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.3641, allocations: 2.031 kB / 0.5153 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.3641, allocations: 40.23 kB / 0.5153 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.3641, allocations: 0.9375 kB / 0.5153 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001077/0.3652, allocations: 0.673 MB / 0.516 GB, free: 284 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.3652, allocations: 87.64 kB / 0.5161 GB, free: 180 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.3656, allocations: 300.6 kB / 0.5164 GB, free: 16 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.3656, allocations: 30.8 kB / 0.5164 GB, free: 15.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.3658, allocations: 211.4 kB / 0.5166 GB, free: 15.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.3658, allocations: 60.67 kB / 0.5167 GB, free: 15.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.277e-05/0.3659, allocations: 52.2 kB / 0.5167 GB, free: 15.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3661, allocations: 338.8 kB / 0.517 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.3662, allocations: 67.97 kB / 0.5171 GB, free: 15.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.3664, allocations: 174.1 kB / 0.5173 GB, free: 15.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.3667, allocations: 264.3 kB / 0.5175 GB, free: 15.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3667, allocations: 0.8438 kB / 0.5175 GB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004989/0.3673, allocations: 288.8 kB / 0.5178 GB, free: 14.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3673, allocations: 6.406 kB / 0.5178 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3673, allocations: 3.406 kB / 0.5178 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.3673, allocations: 4.969 kB / 0.5178 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002926/0.3676, allocations: 57.19 kB / 0.5179 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.3676, allocations: 9 kB / 0.5179 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.3678, allocations: 15.06 kB / 0.5179 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.3679, allocations: 18.34 kB / 0.5179 GB, free: 14.88 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (29): * Single equations (assignments): 29 * 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.0001881/0.3681, allocations: 167 kB / 0.5181 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.3681, allocations: 34.03 kB / 0.5181 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004674/0.3686, allocations: 231 kB / 0.5183 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.3686, allocations: 4.062 kB / 0.5183 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3686, allocations: 0.8438 kB / 0.5183 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3686, allocations: 1.641 kB / 0.5183 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.3696, allocations: 0.6235 MB / 0.5189 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3696, allocations: 0 / 0.5189 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.3698, allocations: 39.33 kB / 0.519 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3698, allocations: 2.125 kB / 0.519 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.3699, allocations: 5.344 kB / 0.519 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3699, allocations: 6.125 kB / 0.519 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3699, allocations: 1.406 kB / 0.519 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.3704, allocations: 431.4 kB / 0.5194 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.451e-05/0.3705, allocations: 103.3 kB / 0.5195 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.677e-05/0.3706, allocations: 7.516 kB / 0.5195 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.3707, allocations: 14.58 kB / 0.5195 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.3708, allocations: 10.42 kB / 0.5195 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.3708, allocations: 5.75 kB / 0.5195 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.371, allocations: 215.1 kB / 0.5197 GB, free: 13.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3711, allocations: 4.062 kB / 0.5197 GB, free: 13.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.3714, allocations: 61.31 kB / 0.5198 GB, free: 13.67 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0001288/0.3716, allocations: 98.44 kB / 0.5199 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003543/0.3719, allocations: 196.9 kB / 0.5201 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3719, allocations: 0.9062 kB / 0.5201 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.3721, allocations: 91.42 kB / 0.5202 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.3726, allocations: 61.02 kB / 0.5202 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.3738, allocations: 0.6892 MB / 0.5209 GB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.3742, allocations: 0.8034 MB / 0.5217 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.478e-05/0.3743, allocations: 30.84 kB / 0.5217 GB, free: 12.31 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3743, allocations: 0 / 0.5217 GB, free: 12.31 MB / 398.1 MB Notification: Performance of Templates: time 0.007429/0.3818, allocations: 3.885 MB / 0.5255 GB, free: 11.95 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i,meter.p,meter.v Variables in the result:meter.i,meter.p,meter.v,time