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.001502/0.001502, allocations: 175.2 kB / 13.63 MB, free: 1.684 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.479/1.479, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0009123/0.0009119, allocations: 78.67 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1547/0.1547, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.271e-05/2.284e-05, allocations: 4 kB / 417.7 MB, free: 29.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09183/0.09187, allocations: 56.32 MB / 474.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3631/0.4551, allocations: 96.28 MB / 0.557 GB, free: 6.344 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.4553, allocations: 87.27 kB / 0.557 GB, free: 6.301 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01959/0.4749, allocations: 7.695 MB / 0.5646 GB, free: 15.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4749, allocations: 0 / 0.5646 GB, free: 15.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.755e-05/0.475, allocations: 8 kB / 0.5646 GB, free: 15.68 MB / 378.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.000868/0.4758, allocations: 0.5851 MB / 0.5651 GB, free: 15.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.4759, allocations: 8.031 kB / 0.5651 GB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.831e-05/0.476, allocations: 43.83 kB / 0.5652 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.4776, allocations: 0.7241 MB / 0.5659 GB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.4777, allocations: 20.31 kB / 0.5659 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.4777, allocations: 26.06 kB / 0.5659 GB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.4783, allocations: 348.2 kB / 0.5663 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.4783, allocations: 4 kB / 0.5663 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.4783, allocations: 10.81 kB / 0.5663 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.4783, allocations: 11.94 kB / 0.5663 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.4787, allocations: 254.3 kB / 0.5665 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.4803, allocations: 1.449 MB / 0.568 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.4806, allocations: 148.1 kB / 0.5681 GB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.4807, allocations: 83.12 kB / 0.5682 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.4808, allocations: 3.938 kB / 0.5682 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.4808, allocations: 34.56 kB / 0.5682 GB, free: 12.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.744e-06/0.4808, allocations: 0 / 0.5682 GB, free: 12.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001079/0.4819, allocations: 0.623 MB / 0.5688 GB, free: 11.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.482, allocations: 77.11 kB / 0.5689 GB, free: 11.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002723/0.4822, allocations: 262.9 kB / 0.5691 GB, free: 11.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.4823, allocations: 29.64 kB / 0.5692 GB, free: 11.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.4824, allocations: 218.4 kB / 0.5694 GB, free: 11.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.66e-05/0.4825, allocations: 62.48 kB / 0.5694 GB, free: 11.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.4825, allocations: 3.438 kB / 0.5694 GB, free: 11.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4826, allocations: 340.2 kB / 0.5698 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.4827, allocations: 62.09 kB / 0.5698 GB, free: 10.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.4829, allocations: 166.6 kB / 0.57 GB, free: 10.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.4831, allocations: 90.88 kB / 0.5701 GB, free: 10.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4831, allocations: 4 kB / 0.5701 GB, free: 10.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004086/0.4835, allocations: 280.5 kB / 0.5703 GB, free: 10.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.4835, allocations: 8 kB / 0.5704 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4835, allocations: 4 kB / 0.5704 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4835, allocations: 7.953 kB / 0.5704 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.4838, allocations: 59.16 kB / 0.5704 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.4838, allocations: 7.938 kB / 0.5704 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.484, allocations: 19.8 kB / 0.5704 GB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.484, allocations: 8 kB / 0.5705 GB, free: 10.09 MB / 378.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 () * 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 8.6e-05/0.4841, allocations: 123.7 kB / 0.5706 GB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-05/0.4842, allocations: 23.72 kB / 0.5706 GB, free: 9.949 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003794/0.4846, allocations: 234.3 kB / 0.5708 GB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.4846, allocations: 4 kB / 0.5708 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.4846, allocations: 0 / 0.5708 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.4846, allocations: 7.938 kB / 0.5708 GB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007559/0.4854, allocations: 0.6255 MB / 0.5714 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4854, allocations: 0 / 0.5714 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.4856, allocations: 39.92 kB / 0.5715 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.4856, allocations: 0 / 0.5715 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.4856, allocations: 3.5 kB / 0.5715 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.4856, allocations: 7.953 kB / 0.5715 GB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4856, allocations: 0 / 0.5715 GB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005005/0.4861, allocations: 446.7 kB / 0.5719 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.076e-05/0.4862, allocations: 103.6 kB / 0.572 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.4863, allocations: 11.36 kB / 0.572 GB, free: 8.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.4865, allocations: 4 kB / 0.572 GB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/0.4865, allocations: 11.73 kB / 0.572 GB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.4865, allocations: 8.062 kB / 0.5721 GB, free: 8.594 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.4867, allocations: 215.8 kB / 0.5723 GB, free: 8.418 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4867, allocations: 0 / 0.5723 GB, free: 8.418 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003298/0.4871, allocations: 62.12 kB / 0.5723 GB, free: 8.363 MB / 378.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 () * 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.0001526/0.4872, allocations: 114.8 kB / 0.5724 GB, free: 8.246 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003024/0.4875, allocations: 192.3 kB / 0.5726 GB, free: 8.102 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4875, allocations: 0 / 0.5726 GB, free: 8.102 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.4877, allocations: 85.09 kB / 0.5727 GB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.4881, allocations: 64.75 kB / 0.5728 GB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000816/0.4889, allocations: 466.8 kB / 0.5732 GB, free: 7.551 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.4893, allocations: 0.8095 MB / 0.574 GB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000199/0.4895, allocations: 58.92 kB / 0.574 GB, free: 6.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.162e-05/0.4896, allocations: 27.38 kB / 0.5741 GB, free: 6.633 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4896, allocations: 4 kB / 0.5741 GB, free: 6.629 MB / 378.7 MB Notification: Performance of Templates: time 0.006153/0.4958, allocations: 2.742 MB / 0.5768 GB, free: 3.902 MB / 378.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