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.001094/0.001094, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.438/1.438, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008985/0.0008985, allocations: 103.6 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1735/0.1735, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.000303, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3126, allocations: 56.32 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1458/0.4585, allocations: 96.38 MB / 0.5632 GB, free: 6.039 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003723/0.4589, allocations: 87.95 kB / 0.5633 GB, free: 5.953 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02404/0.483, allocations: 7.7 MB / 0.5708 GB, free: 14.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.607e-06/0.483, allocations: 0 / 0.5708 GB, free: 14.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.869e-05/0.4831, allocations: 8 kB / 0.5708 GB, free: 14.16 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.001257/0.4843, allocations: 0.6489 MB / 0.5714 GB, free: 13.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.4844, allocations: 8.031 kB / 0.5714 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.801e-05/0.4845, allocations: 43.83 kB / 0.5715 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.4863, allocations: 0.744 MB / 0.5722 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.4863, allocations: 20.5 kB / 0.5722 GB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.107e-05/0.4864, allocations: 27.94 kB / 0.5722 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006166/0.487, allocations: 356.7 kB / 0.5726 GB, free: 12.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.487, allocations: 4 kB / 0.5726 GB, free: 12.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.4871, allocations: 12 kB / 0.5726 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.4871, allocations: 4 kB / 0.5726 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004086/0.4875, allocations: 257.9 kB / 0.5728 GB, free: 11.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.4893, allocations: 1.427 MB / 0.5742 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.4896, allocations: 157.1 kB / 0.5744 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.4896, allocations: 3.938 kB / 0.5744 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.4897, allocations: 38.62 kB / 0.5744 GB, free: 10.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.953e-06/0.4897, allocations: 0 / 0.5744 GB, free: 10.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=16): time 0.001181/0.4909, allocations: 0.6875 MB / 0.5751 GB, free: 9.441 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.4909, allocations: 81.11 kB / 0.5752 GB, free: 9.344 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.4912, allocations: 267.6 kB / 0.5754 GB, free: 9.078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.4913, allocations: 29.7 kB / 0.5755 GB, free: 9.043 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.4914, allocations: 215.5 kB / 0.5757 GB, free: 8.824 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.148e-05/0.4915, allocations: 55.14 kB / 0.5757 GB, free: 8.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.24e-05/0.4915, allocations: 8 kB / 0.5757 GB, free: 8.762 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.4916, allocations: 338.8 kB / 0.576 GB, free: 8.422 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.4918, allocations: 67.97 kB / 0.5761 GB, free: 8.355 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.492, allocations: 165.3 kB / 0.5763 GB, free: 8.148 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.4921, allocations: 87.91 kB / 0.5764 GB, free: 8.062 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4921, allocations: 8 kB / 0.5764 GB, free: 8.055 MB / 410.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004032/0.4925, allocations: 282.2 kB / 0.5766 GB, free: 7.773 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.4926, allocations: 8 kB / 0.5766 GB, free: 7.766 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.4926, allocations: 4.438 kB / 0.5766 GB, free: 7.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.4926, allocations: 11.94 kB / 0.5767 GB, free: 7.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.4929, allocations: 59.91 kB / 0.5767 GB, free: 7.691 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.4929, allocations: 4 kB / 0.5767 GB, free: 7.688 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.4931, allocations: 23.83 kB / 0.5767 GB, free: 7.664 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.4931, allocations: 16 kB / 0.5768 GB, free: 7.648 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.0002375/0.4934, allocations: 161.8 kB / 0.5769 GB, free: 7.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.444e-05/0.4934, allocations: 23.72 kB / 0.5769 GB, free: 7.457 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004321/0.4939, allocations: 239.5 kB / 0.5772 GB, free: 7.215 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.4939, allocations: 7.938 kB / 0.5772 GB, free: 7.207 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4939, allocations: 0 / 0.5772 GB, free: 7.207 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4939, allocations: 0 / 0.5772 GB, free: 7.207 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008211/0.4947, allocations: 0.6302 MB / 0.5778 GB, free: 6.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4947, allocations: 4 kB / 0.5778 GB, free: 6.516 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.4949, allocations: 39.92 kB / 0.5778 GB, free: 6.477 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.495, allocations: 0 / 0.5778 GB, free: 6.477 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.495, allocations: 4 kB / 0.5778 GB, free: 6.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.495, allocations: 7.984 kB / 0.5778 GB, free: 6.465 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.495, allocations: 0 / 0.5778 GB, free: 6.465 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005501/0.4956, allocations: 443.8 kB / 0.5783 GB, free: 6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.4957, allocations: 112.7 kB / 0.5784 GB, free: 5.871 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.4957, allocations: 8.062 kB / 0.5784 GB, free: 5.863 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.4959, allocations: 11.98 kB / 0.5784 GB, free: 5.852 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.226e-05/0.4959, allocations: 11.92 kB / 0.5784 GB, free: 5.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.496, allocations: 8 kB / 0.5784 GB, free: 5.832 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000211/0.4962, allocations: 211 kB / 0.5786 GB, free: 5.629 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4962, allocations: 0 / 0.5786 GB, free: 5.629 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003521/0.4965, allocations: 64 kB / 0.5787 GB, free: 5.566 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.0001531/0.4967, allocations: 103.2 kB / 0.5788 GB, free: 5.457 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.497, allocations: 191.6 kB / 0.5789 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.497, allocations: 0 / 0.5789 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.4972, allocations: 95.78 kB / 0.579 GB, free: 5.176 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.4976, allocations: 65.52 kB / 0.5791 GB, free: 5.113 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.4989, allocations: 0.8057 MB / 0.5799 GB, free: 4.273 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005327/0.4994, allocations: 0.8145 MB / 0.5807 GB, free: 3.434 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002495/0.4997, allocations: 50.94 kB / 0.5807 GB, free: 3.383 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.428e-05/0.4998, allocations: 27.42 kB / 0.5808 GB, free: 3.355 MB / 410.7 MB Notification: Performance of SimCode: time 6.02e-07/0.4998, allocations: 0 / 0.5808 GB, free: 3.355 MB / 410.7 MB Notification: Performance of Templates: time 0.006409/0.5062, allocations: 2.74 MB / 0.5834 GB, free: 0.6289 MB / 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/jenkins/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