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.001314/0.001314, allocations: 113.2 kB / 17.07 MB, free: 5.945 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.001273/0.001273, allocations: 194.8 kB / 18 MB, free: 5.035 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.477/1.477, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 67.89 kB / 458.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4328/0.4341, allocations: 58.06 MB / 0.5041 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.006587/0.4407, allocations: 4.195 MB / 0.5082 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.4427, allocations: 0.9428 MB / 0.5091 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.4429, allocations: 15.91 kB / 0.5091 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.4432, allocations: 51.97 kB / 0.5092 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005768/0.4438, allocations: 203.5 kB / 0.5094 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002409/0.4441, allocations: 101.4 kB / 0.5095 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005688/0.4447, allocations: 484.2 kB / 0.5099 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002807/0.445, allocations: 148.8 kB / 0.5101 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003244/0.4453, allocations: 214.6 kB / 0.5103 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004204/0.4457, allocations: 242.7 kB / 0.5105 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.903e-05/0.4458, allocations: 30.47 kB / 0.5106 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.512e-05/0.4459, allocations: 27.25 kB / 0.5106 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.4461, allocations: 124.1 kB / 0.5107 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002176/0.4463, allocations: 183.5 kB / 0.5109 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005185/0.4468, allocations: 376.7 kB / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4468, allocations: 0 / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4468, allocations: 0 / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.4469, 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.001282/0.4481, allocations: 0.6992 MB / 0.5119 GB, free: 2.676 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.4482, allocations: 13.58 kB / 0.5119 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.081e-05/0.4483, allocations: 38.31 kB / 0.512 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006093/0.4489, allocations: 409.4 kB / 0.5124 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.4489, allocations: 18.69 kB / 0.5124 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.27e-05/0.449, allocations: 25.28 kB / 0.5124 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.4495, allocations: 362.6 kB / 0.5127 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4495, allocations: 1.094 kB / 0.5127 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.4496, allocations: 10.19 kB / 0.5128 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.4496, allocations: 6.688 kB / 0.5128 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004358/0.45, allocations: 260.2 kB / 0.513 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.4517, allocations: 1.442 MB / 0.5144 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.4519, allocations: 157.1 kB / 0.5146 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.4521, allocations: 85.47 kB / 0.5146 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.4521, allocations: 1.984 kB / 0.5147 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.4521, allocations: 40.97 kB / 0.5147 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.4521, allocations: 0 / 0.5147 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001109/0.4533, allocations: 0.6746 MB / 0.5153 GB, free: 320 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.4533, allocations: 80.17 kB / 0.5154 GB, free: 224 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/0.4537, allocations: 300.2 kB / 0.5157 GB, free: 60 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.4537, allocations: 31.2 kB / 0.5157 GB, free: 24 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.4539, allocations: 215.7 kB / 0.5159 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.748e-05/0.454, allocations: 55.91 kB / 0.516 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.973e-05/0.4541, allocations: 52.89 kB / 0.5161 GB, free: 15.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4542, allocations: 339 kB / 0.5164 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.4544, allocations: 72.12 kB / 0.5164 GB, free: 15.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.4546, allocations: 170.2 kB / 0.5166 GB, free: 15.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004357/0.455, allocations: 262.3 kB / 0.5169 GB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.455, allocations: 2.469 kB / 0.5169 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005762/0.4556, allocations: 287.8 kB / 0.5171 GB, free: 14.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.4557, allocations: 6.797 kB / 0.5171 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.4557, allocations: 3.906 kB / 0.5171 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.4557, allocations: 5.531 kB / 0.5171 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.456, allocations: 55.39 kB / 0.5172 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.456, allocations: 6.734 kB / 0.5172 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.4562, allocations: 17.55 kB / 0.5172 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.4562, allocations: 10.41 kB / 0.5172 GB, free: 14.93 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.0001889/0.4564, allocations: 176.4 kB / 0.5174 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.4565, allocations: 32.14 kB / 0.5174 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005168/0.457, allocations: 226 kB / 0.5176 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/0.457, allocations: 2.719 kB / 0.5177 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.457, allocations: 5.062 kB / 0.5177 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.457, allocations: 5.812 kB / 0.5177 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.4581, allocations: 0.6247 MB / 0.5183 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4581, allocations: 1.188 kB / 0.5183 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.4583, allocations: 34.23 kB / 0.5183 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.4583, allocations: 1.688 kB / 0.5183 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.4583, allocations: 7.547 kB / 0.5183 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.4583, allocations: 4.969 kB / 0.5183 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4583, allocations: 1.156 kB / 0.5183 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000569/0.4589, allocations: 426.9 kB / 0.5187 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.929e-05/0.459, allocations: 104.7 kB / 0.5188 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.4591, allocations: 6.125 kB / 0.5188 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.4592, allocations: 7.734 kB / 0.5188 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.965e-05/0.4593, allocations: 14.05 kB / 0.5189 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.4593, allocations: 4.75 kB / 0.5189 GB, free: 13.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.4595, allocations: 219.9 kB / 0.5191 GB, free: 13.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4595, allocations: 3.938 kB / 0.5191 GB, free: 13.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000358/0.4599, allocations: 57.64 kB / 0.5191 GB, free: 13.71 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.000138/0.46, allocations: 98.61 kB / 0.5192 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003933/0.4604, allocations: 196.5 kB / 0.5194 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4604, allocations: 4.25 kB / 0.5194 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.4606, allocations: 88.44 kB / 0.5195 GB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005318/0.4612, allocations: 71.5 kB / 0.5196 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.4625, allocations: 0.6534 MB / 0.5202 GB, free: 13.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000512/0.463, allocations: 0.8049 MB / 0.521 GB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001954/0.4632, allocations: 56.69 kB / 0.521 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.458e-05/0.4633, allocations: 24.64 kB / 0.5211 GB, free: 12.38 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4633, allocations: 3.938 kB / 0.5211 GB, free: 12.38 MB / 398.1 MB Notification: Performance of Templates: time 0.007963/0.4713, allocations: 3.014 MB / 0.524 GB, free: 12.14 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