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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001366/0.001366, allocations: 180.6 kB / 17.4 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.4 MB / 223.5 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008646/0.0008647, allocations: 78.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2657/0.2657, allocations: 38.07 MB / 358.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004541/0.0004541, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3018, allocations: 56.31 MB / 481.6 MB, free: 9.605 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1277/0.4296, allocations: 96.41 MB / 0.5644 GB, free: 5.855 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.4299, allocations: 99.81 kB / 0.5645 GB, free: 5.762 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02294/0.4529, allocations: 7.67 MB / 0.572 GB, free: 14.01 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4529, allocations: 4 kB / 0.572 GB, free: 14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.668e-05/0.453, allocations: 11.92 kB / 0.572 GB, free: 13.99 MB / 410.7 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.001231/0.4542, allocations: 0.653 MB / 0.5727 GB, free: 13.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.4543, allocations: 8.031 kB / 0.5727 GB, free: 13.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.4544, allocations: 40.47 kB / 0.5727 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009447/0.4553, allocations: 495.5 kB / 0.5732 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.4554, allocations: 20.94 kB / 0.5732 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.381e-05/0.4554, allocations: 24.38 kB / 0.5732 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005326/0.456, allocations: 361.3 kB / 0.5736 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.456, allocations: 3.938 kB / 0.5736 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.456, allocations: 12 kB / 0.5736 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.456, allocations: 11.98 kB / 0.5736 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004106/0.4565, allocations: 254 kB / 0.5738 GB, free: 12.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.4582, allocations: 1.446 MB / 0.5753 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.4584, allocations: 161 kB / 0.5754 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.4586, allocations: 85.98 kB / 0.5755 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.4586, allocations: 11.98 kB / 0.5755 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.4586, allocations: 34.5 kB / 0.5755 GB, free: 10.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 2.064e-06/0.4587, allocations: 0 / 0.5755 GB, free: 10.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=16): time 0.001135/0.4598, allocations: 0.6665 MB / 0.5762 GB, free: 9.438 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.4599, allocations: 89.23 kB / 0.5763 GB, free: 9.332 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.4602, allocations: 304.4 kB / 0.5766 GB, free: 9.027 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.4602, allocations: 25.7 kB / 0.5766 GB, free: 8.996 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.4604, allocations: 211.6 kB / 0.5768 GB, free: 8.781 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.742e-05/0.4604, allocations: 55.2 kB / 0.5768 GB, free: 8.727 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.4604, allocations: 4 kB / 0.5768 GB, free: 8.723 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4606, allocations: 346.7 kB / 0.5772 GB, free: 8.375 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.4607, allocations: 59.95 kB / 0.5772 GB, free: 8.316 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.4608, allocations: 169.3 kB / 0.5774 GB, free: 8.105 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.4612, allocations: 261.7 kB / 0.5776 GB, free: 7.805 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4612, allocations: 0 / 0.5776 GB, free: 7.805 MB / 410.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003937/0.4616, allocations: 288.9 kB / 0.5779 GB, free: 7.516 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.4616, allocations: 10.5 kB / 0.5779 GB, free: 7.508 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.4616, allocations: 4 kB / 0.5779 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.4616, allocations: 4 kB / 0.5779 GB, free: 7.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.4619, allocations: 59.91 kB / 0.578 GB, free: 7.441 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.4619, allocations: 7.938 kB / 0.578 GB, free: 7.434 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.4621, allocations: 24.36 kB / 0.578 GB, free: 7.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.4621, allocations: 8 kB / 0.578 GB, free: 7.402 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001629/0.4623, allocations: 169.6 kB / 0.5782 GB, free: 7.227 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.4623, allocations: 31.62 kB / 0.5782 GB, free: 7.195 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003667/0.4627, allocations: 231.5 kB / 0.5784 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4627, allocations: 0 / 0.5784 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4627, allocations: 4 kB / 0.5784 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4628, allocations: 3.938 kB / 0.5784 GB, free: 6.957 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007441/0.4635, allocations: 0.6279 MB / 0.5791 GB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4635, allocations: 0 / 0.5791 GB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.4637, allocations: 35.92 kB / 0.5791 GB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.4637, allocations: 4 kB / 0.5791 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.4638, allocations: 7.938 kB / 0.5791 GB, free: 6.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4638, allocations: 7.938 kB / 0.5791 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4638, allocations: 0 / 0.5791 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005275/0.4643, allocations: 433.3 kB / 0.5795 GB, free: 5.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.114e-05/0.4644, allocations: 100.9 kB / 0.5796 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.4645, allocations: 7.938 kB / 0.5796 GB, free: 5.645 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.4646, allocations: 7.984 kB / 0.5796 GB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.4647, allocations: 15.98 kB / 0.5797 GB, free: 5.621 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.4647, allocations: 4 kB / 0.5797 GB, free: 5.617 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002226/0.4649, allocations: 215.1 kB / 0.5799 GB, free: 5.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4649, allocations: 0 / 0.5799 GB, free: 5.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003658/0.4653, allocations: 67.94 kB / 0.5799 GB, free: 5.344 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001399/0.4654, allocations: 107.2 kB / 0.58 GB, free: 5.227 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.4658, allocations: 187.9 kB / 0.5802 GB, free: 5.047 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4658, allocations: 3.938 kB / 0.5802 GB, free: 5.043 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.4659, allocations: 99.94 kB / 0.5803 GB, free: 4.945 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.4665, allocations: 67.94 kB / 0.5804 GB, free: 4.883 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.4677, allocations: 0.7864 MB / 0.5811 GB, free: 4.059 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.4681, allocations: 0.8067 MB / 0.5819 GB, free: 3.227 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.4683, allocations: 62.92 kB / 0.582 GB, free: 3.168 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.35e-05/0.4684, allocations: 27.44 kB / 0.582 GB, free: 3.141 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4684, allocations: 3.938 kB / 0.582 GB, free: 3.137 MB / 410.7 MB Notification: Performance of Templates: time 0.006194/0.4746, allocations: 2.763 MB / 0.5847 GB, free: 396 kB / 410.7 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","../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