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.0009418/0.0009419, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007751/0.0007751, allocations: 88.64 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1703/0.1703, allocations: 37.98 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.897e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 56.32 MB / 466.9 MB, free: 6.574 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3544/0.4639, allocations: 95.62 MB / 0.5493 GB, free: 15.33 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/0.4643, allocations: 91.95 kB / 0.5494 GB, free: 15.24 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02307/0.4874, allocations: 7.623 MB / 0.5569 GB, free: 7.551 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4874, allocations: 0 / 0.5569 GB, free: 7.551 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.4875, allocations: 11.94 kB / 0.5569 GB, free: 7.539 MB / 395.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.0009678/0.4885, allocations: 0.5745 MB / 0.5574 GB, free: 6.922 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.4885, allocations: 16.02 kB / 0.5574 GB, free: 6.906 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.272e-05/0.4886, allocations: 39.83 kB / 0.5575 GB, free: 6.867 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.4904, allocations: 0.7305 MB / 0.5582 GB, free: 6.098 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.4904, allocations: 8 kB / 0.5582 GB, free: 6.09 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.02e-05/0.4905, allocations: 16 kB / 0.5582 GB, free: 6.074 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004132/0.4909, allocations: 225 kB / 0.5584 GB, free: 5.855 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004723/0.4914, allocations: 311.6 kB / 0.5587 GB, free: 5.52 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.4914, allocations: 7.984 kB / 0.5587 GB, free: 5.512 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.4914, allocations: 4 kB / 0.5587 GB, free: 5.508 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.4914, allocations: 7.953 kB / 0.5588 GB, free: 5.5 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.4931, allocations: 1.383 MB / 0.5601 GB, free: 4.031 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.4934, allocations: 149 kB / 0.5602 GB, free: 3.867 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.4935, allocations: 73.75 kB / 0.5603 GB, free: 3.789 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.4936, allocations: 7.984 kB / 0.5603 GB, free: 3.781 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.4936, allocations: 34.56 kB / 0.5604 GB, free: 3.738 MB / 395.1 MB Notification: Performance of pre-optimization done (n=15): time 2.254e-06/0.4936, allocations: 0 / 0.5604 GB, free: 3.738 MB / 395.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009702/0.4946, allocations: 0.5838 MB / 0.5609 GB, free: 3.102 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.4947, allocations: 81.11 kB / 0.561 GB, free: 3.004 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.4949, allocations: 249.1 kB / 0.5612 GB, free: 2.75 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.495, allocations: 25.7 kB / 0.5613 GB, free: 2.719 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.4951, allocations: 215.7 kB / 0.5615 GB, free: 2.504 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/0.4952, allocations: 59.19 kB / 0.5615 GB, free: 2.445 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-06/0.4952, allocations: 0 / 0.5615 GB, free: 2.445 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.4953, allocations: 338.8 kB / 0.5618 GB, free: 2.105 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-05/0.4954, allocations: 60.75 kB / 0.5619 GB, free: 2.047 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.4956, allocations: 162.3 kB / 0.5621 GB, free: 1.844 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.4958, allocations: 86.41 kB / 0.5621 GB, free: 1.762 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.4958, allocations: 4 kB / 0.5621 GB, free: 1.758 MB / 395.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003819/0.4961, allocations: 252.9 kB / 0.5624 GB, free: 1.504 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4962, allocations: 4 kB / 0.5624 GB, free: 1.5 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.4962, allocations: 4.438 kB / 0.5624 GB, free: 1.496 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.4962, allocations: 12 kB / 0.5624 GB, free: 1.484 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.4965, allocations: 63.83 kB / 0.5625 GB, free: 1.422 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.4965, allocations: 7.953 kB / 0.5625 GB, free: 1.414 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.4967, allocations: 7.984 kB / 0.5625 GB, free: 1.406 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.4967, allocations: 20 kB / 0.5625 GB, free: 1.387 MB / 395.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 () * 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 9.476e-05/0.4968, allocations: 112.8 kB / 0.5626 GB, free: 1.27 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.522e-05/0.4969, allocations: 27.72 kB / 0.5626 GB, free: 1.242 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.4973, allocations: 219.6 kB / 0.5628 GB, free: 1.023 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.4973, allocations: 4 kB / 0.5629 GB, free: 1.02 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.4973, allocations: 0 / 0.5629 GB, free: 1.02 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4973, allocations: 4 kB / 0.5629 GB, free: 1.016 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000727/0.498, allocations: 0.5592 MB / 0.5634 GB, free: 420 kB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.498, allocations: 4 kB / 0.5634 GB, free: 416 kB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002023/0.4983, allocations: 39.92 kB / 0.5634 GB, free: 376 kB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.4983, allocations: 0 / 0.5634 GB, free: 376 kB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.4983, allocations: 4 kB / 0.5634 GB, free: 372 kB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.4983, allocations: 4.031 kB / 0.5635 GB, free: 368 kB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.4983, allocations: 3.938 kB / 0.5635 GB, free: 364 kB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005194/0.4988, allocations: 432.6 kB / 0.5639 GB, free: 15.9 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.136e-05/0.4989, allocations: 100.8 kB / 0.564 GB, free: 15.78 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.499, allocations: 4.062 kB / 0.564 GB, free: 15.78 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.4991, allocations: 11.94 kB / 0.564 GB, free: 15.77 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.016e-05/0.4992, allocations: 15.98 kB / 0.564 GB, free: 15.75 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.4992, allocations: 4 kB / 0.564 GB, free: 15.75 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.4994, allocations: 196.6 kB / 0.5642 GB, free: 15.55 MB / 411.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4994, allocations: 0 / 0.5642 GB, free: 15.55 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.4998, allocations: 60.25 kB / 0.5642 GB, free: 15.5 MB / 411.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 () * 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.0001834/0.5, allocations: 113 kB / 0.5644 GB, free: 15.38 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0002913/0.5003, allocations: 175.7 kB / 0.5645 GB, free: 15.2 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5003, allocations: 0 / 0.5645 GB, free: 15.2 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.5004, allocations: 87.84 kB / 0.5646 GB, free: 15.12 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.5009, allocations: 54.14 kB / 0.5647 GB, free: 15.07 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008625/0.5017, allocations: 455.6 kB / 0.5651 GB, free: 14.59 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.5021, allocations: 0.8185 MB / 0.5659 GB, free: 13.75 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001874/0.5023, allocations: 51.27 kB / 0.5659 GB, free: 13.7 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.162e-05/0.5024, allocations: 27.42 kB / 0.566 GB, free: 13.67 MB / 411.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5024, allocations: 0 / 0.566 GB, free: 13.67 MB / 411.1 MB Notification: Performance of Templates: time 0.005784/0.5082, allocations: 2.544 MB / 0.5684 GB, free: 11.13 MB / 411.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","../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