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.001481/0.001481, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.001601/0.001601, allocations: 191 kB / 18 MB, free: 5.219 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.479/1.479, 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.1801/0.1801, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 55.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4299/0.4317, allocations: 58.06 MB / 0.5041 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005259/0.437, allocations: 4.19 MB / 0.5082 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.4389, allocations: 0.9369 MB / 0.5091 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.4391, allocations: 11.31 kB / 0.5091 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002091/0.4393, allocations: 52.34 kB / 0.5092 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006026/0.44, allocations: 212 kB / 0.5094 GB, free: 4.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.4403, allocations: 96.72 kB / 0.5095 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005509/0.4408, allocations: 485.1 kB / 0.5099 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002986/0.4411, allocations: 150.1 kB / 0.5101 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.4415, allocations: 219.1 kB / 0.5103 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004498/0.4419, allocations: 246.2 kB / 0.5105 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.94e-05/0.442, allocations: 31.22 kB / 0.5105 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.826e-05/0.4421, allocations: 26.84 kB / 0.5106 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.4422, allocations: 120.1 kB / 0.5107 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.4424, allocations: 180 kB / 0.5109 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004921/0.4429, allocations: 384 kB / 0.5112 GB, free: 3.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.443, allocations: 0 / 0.5112 GB, free: 3.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.443, allocations: 0 / 0.5112 GB, free: 3.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.443, allocations: 1.656 kB / 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001294/0.4443, allocations: 0.6933 MB / 0.5119 GB, free: 2.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4443, allocations: 13.36 kB / 0.5119 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.156e-05/0.4444, allocations: 39.12 kB / 0.512 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006301/0.4451, allocations: 408.8 kB / 0.5123 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.4451, allocations: 19.66 kB / 0.5124 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.193e-05/0.4452, allocations: 25.22 kB / 0.5124 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/0.4457, allocations: 358.2 kB / 0.5127 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.4457, allocations: 1.125 kB / 0.5127 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/0.4458, allocations: 10.28 kB / 0.5127 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.4458, allocations: 11.5 kB / 0.5128 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.4462, allocations: 260.6 kB / 0.513 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.4482, allocations: 1.445 MB / 0.5144 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.4486, allocations: 161.2 kB / 0.5146 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.4487, allocations: 76.52 kB / 0.5146 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.4488, allocations: 3.109 kB / 0.5146 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.4488, allocations: 44.56 kB / 0.5147 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.512e-06/0.4488, allocations: 0 / 0.5147 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001478/0.4503, allocations: 0.676 MB / 0.5153 GB, free: 376 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.4504, allocations: 79.39 kB / 0.5154 GB, free: 280 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004258/0.4508, allocations: 299.8 kB / 0.5157 GB, free: 116 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.4508, allocations: 31.17 kB / 0.5157 GB, free: 80 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.4511, allocations: 216.1 kB / 0.5159 GB, free: 15.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.719e-05/0.4511, allocations: 55.66 kB / 0.516 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.4512, allocations: 52.86 kB / 0.516 GB, free: 15.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.4515, allocations: 343.7 kB / 0.5164 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.4516, allocations: 72.09 kB / 0.5164 GB, free: 15.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.4519, allocations: 170.3 kB / 0.5166 GB, free: 15.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004345/0.4524, allocations: 259.6 kB / 0.5169 GB, free: 15.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4524, allocations: 1.312 kB / 0.5169 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000621/0.453, allocations: 284.4 kB / 0.5171 GB, free: 15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.453, allocations: 6.844 kB / 0.5171 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.4531, allocations: 7.172 kB / 0.5171 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.4531, allocations: 4.938 kB / 0.5171 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.4534, allocations: 61.28 kB / 0.5172 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.4534, allocations: 14.86 kB / 0.5172 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.4536, allocations: 12.55 kB / 0.5172 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.4536, allocations: 10.19 kB / 0.5172 GB, free: 14.98 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.0002012/0.4538, allocations: 171.9 kB / 0.5174 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.095e-05/0.4539, allocations: 36.97 kB / 0.5174 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004997/0.4544, allocations: 225 kB / 0.5176 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.882e-06/0.4544, allocations: 2.75 kB / 0.5177 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4544, allocations: 0.5625 kB / 0.5177 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4544, allocations: 9.797 kB / 0.5177 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.4554, allocations: 0.6187 MB / 0.5183 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4555, allocations: 0 / 0.5183 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.4557, allocations: 38.17 kB / 0.5183 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.4557, allocations: 1.812 kB / 0.5183 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.4557, allocations: 11 kB / 0.5183 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4557, allocations: 1.031 kB / 0.5183 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4557, allocations: 1.031 kB / 0.5183 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006892/0.4564, allocations: 431.5 kB / 0.5187 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.4566, allocations: 104.4 kB / 0.5188 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.917e-05/0.4566, allocations: 7.234 kB / 0.5188 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.4568, allocations: 5.609 kB / 0.5188 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.4568, allocations: 19.2 kB / 0.5189 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.4569, allocations: 13.83 kB / 0.5189 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002764/0.4571, allocations: 215.4 kB / 0.5191 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4571, allocations: 0 / 0.5191 GB, free: 13.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003886/0.4575, allocations: 56.44 kB / 0.5191 GB, free: 13.76 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.0001244/0.4577, allocations: 102.6 kB / 0.5192 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003676/0.458, allocations: 187.4 kB / 0.5194 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4581, allocations: 4 kB / 0.5194 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.4582, allocations: 94.67 kB / 0.5195 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005483/0.4588, allocations: 63.25 kB / 0.5196 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.46, allocations: 0.6492 MB / 0.5202 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004903/0.4605, allocations: 0.8093 MB / 0.521 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001878/0.4607, allocations: 55.28 kB / 0.521 GB, free: 12.44 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.662e-05/0.4608, allocations: 24.98 kB / 0.5211 GB, free: 12.43 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4608, allocations: 1.062 kB / 0.5211 GB, free: 12.43 MB / 398.1 MB Notification: Performance of Templates: time 0.008166/0.469, allocations: 3.012 MB / 0.524 GB, free: 12.19 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins/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_base,meter.S_nom,meter.V_base,meter.V_nom,meter.av,meter.i,meter.p,meter.puUnits,meter.tcst,meter.v,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time,transPh.a_end,transPh.a_start,transPh.coef,transPh.n,transPh.ph_end,transPh.ph_start,transPh.t_change,transPh.t_duration,trsSignal[1].coef,trsSignal[1].s_end,trsSignal[1].s_start,trsSignal[1].t_change,trsSignal[1].t_duration,trsSignal[2].coef,trsSignal[2].s_end,trsSignal[2].s_start,trsSignal[2].t_change,trsSignal[2].t_duration,voltage.S_nom,voltage.V_base,voltage.V_nom,voltage.alpha0,voltage.f,voltage.fType,voltage.pol,voltage.puUnits,voltage.use_vPhasor_in,voltage.v0eff,zLoadAC.S_base,zLoadAC.S_nom,zLoadAC.V2_nom,zLoadAC.V_nom,zLoadAC.Z_start[1],zLoadAC.Z_start[2],zLoadAC.dynType,zLoadAC.i_start,zLoadAC.pq0[1],zLoadAC.pq0[2],zLoadAC.psi_start,zLoadAC.puUnits,zLoadAC.use_pq_in,zLoadAC.v_start