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.001255/0.001256, allocations: 112.2 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.00129/0.00129, allocations: 196 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.494/1.494, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1932/0.1932, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.89 kB / 458.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4276/0.4288, allocations: 58.05 MB / 0.5041 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.006493/0.4354, allocations: 4.191 MB / 0.5082 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.4375, allocations: 0.9509 MB / 0.5091 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002644/0.4378, allocations: 10.88 kB / 0.5091 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002921/0.4381, allocations: 52.23 kB / 0.5092 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007556/0.4389, allocations: 202.4 kB / 0.5094 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.4392, allocations: 100.9 kB / 0.5095 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007984/0.44, allocations: 481 kB / 0.5099 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004156/0.4405, allocations: 147.7 kB / 0.5101 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.4408, allocations: 210.9 kB / 0.5103 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000489/0.4413, allocations: 246.2 kB / 0.5105 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.578e-05/0.4414, allocations: 30.44 kB / 0.5105 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.875e-05/0.4415, allocations: 26.97 kB / 0.5106 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.4417, allocations: 124.7 kB / 0.5107 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.4419, allocations: 179.6 kB / 0.5109 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006044/0.4425, allocations: 381.6 kB / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4425, allocations: 0.6094 kB / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4425, allocations: 0 / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.4425, allocations: 0 / 0.5112 GB, free: 3.207 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.001424/0.444, allocations: 0.7056 MB / 0.5119 GB, free: 2.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.444, allocations: 14.25 kB / 0.5119 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.755e-05/0.4441, allocations: 42.42 kB / 0.512 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006434/0.4448, allocations: 404.7 kB / 0.5124 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.4448, allocations: 20.69 kB / 0.5124 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/0.4449, allocations: 24.34 kB / 0.5124 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.4454, allocations: 367 kB / 0.5127 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.4455, allocations: 0 / 0.5127 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.4455, allocations: 15.53 kB / 0.5128 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.4455, allocations: 7.594 kB / 0.5128 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.4459, allocations: 255 kB / 0.513 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.4476, allocations: 1.446 MB / 0.5144 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.4479, allocations: 157 kB / 0.5146 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.448, allocations: 85.52 kB / 0.5147 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.4481, allocations: 3.328 kB / 0.5147 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.4481, allocations: 36.77 kB / 0.5147 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.944e-06/0.4481, allocations: 0 / 0.5147 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001166/0.4493, allocations: 0.6795 MB / 0.5154 GB, free: 308 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.4493, allocations: 88.77 kB / 0.5154 GB, free: 204 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.4497, allocations: 299.5 kB / 0.5157 GB, free: 40 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.4497, allocations: 26.7 kB / 0.5158 GB, free: 8 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.4499, allocations: 221.2 kB / 0.516 GB, free: 15.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.207e-05/0.4499, allocations: 63.45 kB / 0.516 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.701e-05/0.45, allocations: 53.08 kB / 0.5161 GB, free: 15.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4501, allocations: 338 kB / 0.5164 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.4503, allocations: 64.31 kB / 0.5165 GB, free: 15.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.4505, allocations: 179.5 kB / 0.5166 GB, free: 15.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.4508, allocations: 260.1 kB / 0.5169 GB, free: 15.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4508, allocations: 0.875 kB / 0.5169 GB, free: 15.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005186/0.4513, allocations: 287.9 kB / 0.5172 GB, free: 14.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.4514, allocations: 7.344 kB / 0.5172 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.4514, allocations: 3.812 kB / 0.5172 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.4514, allocations: 4.5 kB / 0.5172 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.4517, allocations: 61.95 kB / 0.5172 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.4517, allocations: 13.41 kB / 0.5172 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.4519, allocations: 14.39 kB / 0.5173 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.4519, allocations: 18.47 kB / 0.5173 GB, free: 14.89 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.0001727/0.4521, allocations: 164.1 kB / 0.5174 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.617e-05/0.4522, allocations: 28.95 kB / 0.5175 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005012/0.4527, allocations: 236 kB / 0.5177 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.4527, allocations: 2.656 kB / 0.5177 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4527, allocations: 1.062 kB / 0.5177 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4527, allocations: 9.656 kB / 0.5177 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009885/0.4537, allocations: 0.6286 MB / 0.5183 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.4537, allocations: 1.812 kB / 0.5183 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.4539, allocations: 37.8 kB / 0.5183 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.454, allocations: 2.781 kB / 0.5183 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.454, allocations: 5.797 kB / 0.5184 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.454, allocations: 5.375 kB / 0.5184 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.454, allocations: 1.438 kB / 0.5184 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005797/0.4546, allocations: 427.9 kB / 0.5188 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.092e-05/0.4547, allocations: 108.4 kB / 0.5189 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.046e-05/0.4547, allocations: 2.266 kB / 0.5189 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.4549, allocations: 10.58 kB / 0.5189 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.4549, allocations: 10.91 kB / 0.5189 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.455, allocations: 8.875 kB / 0.5189 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002539/0.4552, allocations: 212 kB / 0.5191 GB, free: 13.69 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4552, allocations: 4.062 kB / 0.5191 GB, free: 13.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.4556, allocations: 61.05 kB / 0.5192 GB, free: 13.68 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.0001139/0.4557, allocations: 98.89 kB / 0.5193 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.4561, allocations: 190.1 kB / 0.5194 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4561, allocations: 1 kB / 0.5194 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.4563, allocations: 94.92 kB / 0.5195 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005428/0.4568, allocations: 71.06 kB / 0.5196 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.458, allocations: 0.6545 MB / 0.5202 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.4584, allocations: 0.8095 MB / 0.521 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001871/0.4586, allocations: 51.89 kB / 0.5211 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.125e-05/0.4587, allocations: 25.06 kB / 0.5211 GB, free: 12.34 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4587, allocations: 0 / 0.5211 GB, free: 12.34 MB / 398.1 MB Notification: Performance of Templates: time 0.008269/0.467, allocations: 3.012 MB / 0.524 GB, free: 12.1 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