Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.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.AC3ph.Elementary.Load,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load") translateModel(PowerSystems.Examples.AC3ph.Elementary.Load,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 115.3 kB / 17.06 MB, free: 6 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.001408/0.001409, allocations: 196 kB / 18 MB, free: 5.078 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.392/1.392, 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.1776/0.1776, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.91 kB / 458.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4018, allocations: 58.05 MB / 0.5041 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.006505/0.4083, allocations: 4.493 MB / 0.5085 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.4113, allocations: 1.521 MB / 0.51 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002591/0.4116, allocations: 17.34 kB / 0.51 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009439/0.4126, allocations: 286.3 kB / 0.5103 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006325/0.4132, allocations: 257 kB / 0.5105 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007707/0.414, allocations: 267.7 kB / 0.5108 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007137/0.4147, allocations: 0.6339 MB / 0.5114 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004916/0.4152, allocations: 291.1 kB / 0.5117 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.4156, allocations: 292.8 kB / 0.5119 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006411/0.4163, allocations: 392.1 kB / 0.5123 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.83e-05/0.4164, allocations: 40.78 kB / 0.5124 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003334/0.4167, allocations: 149.7 kB / 0.5125 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003185/0.417, allocations: 245.4 kB / 0.5127 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003119/0.4174, allocations: 275.3 kB / 0.513 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009191/0.4183, allocations: 0.6495 MB / 0.5136 GB, free: 2.004 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4183, allocations: 1.312 kB / 0.5136 GB, free: 2.004 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4183, allocations: 0 / 0.5136 GB, free: 2.004 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.4183, allocations: 0 / 0.5136 GB, free: 2.004 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001925/0.4203, allocations: 0.8916 MB / 0.5145 GB, free: 1.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.4203, allocations: 13.02 kB / 0.5145 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005934/0.4209, allocations: 97.14 kB / 0.5146 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.422, allocations: 0.4908 MB / 0.5151 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.422, allocations: 31.47 kB / 0.5151 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.4221, allocations: 52.69 kB / 0.5152 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.4232, allocations: 0.6855 MB / 0.5158 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.4232, allocations: 2.25 kB / 0.5158 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/0.4233, allocations: 21.19 kB / 0.5159 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/0.4234, allocations: 41.42 kB / 0.5159 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009466/0.4243, allocations: 0.5285 MB / 0.5164 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003733/0.4281, allocations: 3.089 MB / 0.5194 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.4287, allocations: 327.5 kB / 0.5197 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002632/0.429, allocations: 182 kB / 0.5199 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.429, allocations: 11.45 kB / 0.5199 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.429, allocations: 46.36 kB / 0.52 GB, free: 13.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.973e-06/0.4291, allocations: 0 / 0.52 GB, free: 13.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002046/0.4311, allocations: 1.208 MB / 0.5211 GB, free: 13.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.4312, allocations: 84.36 kB / 0.5212 GB, free: 13.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004523/0.4316, allocations: 396.3 kB / 0.5216 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.4317, allocations: 31.05 kB / 0.5216 GB, free: 12.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002091/0.4319, allocations: 303.1 kB / 0.5219 GB, free: 12.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.432, allocations: 116.4 kB / 0.522 GB, free: 12.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.4322, allocations: 104.2 kB / 0.5221 GB, free: 12.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4324, allocations: 355.5 kB / 0.5225 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/0.4327, allocations: 190.4 kB / 0.5227 GB, free: 12.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004095/0.4331, allocations: 385.5 kB / 0.523 GB, free: 11.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007502/0.4338, allocations: 0.5946 MB / 0.5236 GB, free: 11.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4338, allocations: 1.406 kB / 0.5236 GB, free: 11.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001903/0.4358, allocations: 0.8308 MB / 0.5244 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.4358, allocations: 7.266 kB / 0.5244 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4358, allocations: 10.88 kB / 0.5244 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.4371, allocations: 268.6 kB / 0.5247 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006183/0.4378, allocations: 138.2 kB / 0.5248 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005/0.4428, allocations: 4.034 MB / 0.5288 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004103/0.4432, allocations: 28.11 kB / 0.5288 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/0.4433, allocations: 25.73 kB / 0.5288 GB, free: 7.734 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003759/0.4437, allocations: 222.8 kB / 0.529 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.152e-05/0.4438, allocations: 50.88 kB / 0.5291 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008916/0.4447, allocations: 483.8 kB / 0.5295 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4447, allocations: 4.219 kB / 0.5295 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4447, allocations: 4.875 kB / 0.5295 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.4447, allocations: 2.719 kB / 0.5295 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001619/0.4463, allocations: 1.02 MB / 0.5305 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4463, allocations: 1.094 kB / 0.5305 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/0.4468, allocations: 92.5 kB / 0.5306 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.4468, allocations: 3.359 kB / 0.5306 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/0.4469, allocations: 9.688 kB / 0.5306 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.4469, allocations: 3.188 kB / 0.5306 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4469, allocations: 1.781 kB / 0.5307 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.448, allocations: 0.7444 MB / 0.5314 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.4481, allocations: 123.6 kB / 0.5315 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.545e-05/0.4482, allocations: 10.11 kB / 0.5315 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.4484, allocations: 15.33 kB / 0.5315 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.024e-05/0.4485, allocations: 23.84 kB / 0.5315 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.4485, allocations: 14.55 kB / 0.5316 GB, free: 6.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003488/0.4489, allocations: 273.2 kB / 0.5318 GB, free: 6.109 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4489, allocations: 0 / 0.5318 GB, free: 6.109 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005832/0.4495, allocations: 119.3 kB / 0.5319 GB, free: 6.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (load.psi[1],load.psi[2],load.psi[3],load.Z[1],load.Z[2]) * 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 (38): * Single equations (assignments): 37 * 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.0001447/0.4496, allocations: 112.5 kB / 0.532 GB, free: 5.996 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.4511, allocations: 0.802 MB / 0.5328 GB, free: 5.512 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4512, allocations: 1.031 kB / 0.5328 GB, free: 5.512 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003651/0.4515, allocations: 203 kB / 0.533 GB, free: 5.422 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.4522, allocations: 95.06 kB / 0.5331 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003464/0.4557, allocations: 1.466 MB / 0.5345 GB, free: 4.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.4562, allocations: 0.8961 MB / 0.5354 GB, free: 3.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003305/0.4566, allocations: 133.5 kB / 0.5355 GB, free: 3.598 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.4567, allocations: 41.83 kB / 0.5356 GB, free: 3.582 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4567, allocations: 0 / 0.5356 GB, free: 3.582 MB / 398.1 MB Notification: Performance of Templates: time 0.01183/0.4685, allocations: 6.234 MB / 0.5417 GB, free: 0.5156 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Load.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.v[1],meter.v[2],meter.v[3] Variables in the result:$cse7,load.R_base,load.R_n,load.S_base,load.S_nom,load.V2_nom,load.V_nom,load.Z_start[1],load.Z_start[2],load.c0,load.cpl,load.dynType,load.i_start[1],load.i_start[2],load.imax,load.pq0[1],load.pq0[2],load.puUnits,load.r_n,load.tcst,load.use_pq_in,load.v[1],load.v[2],load.v_start[1],load.v_start[2],meter.I_base,meter.S_nom,meter.V_base,meter.V_nom,meter.abc,meter.av,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.puUnits,meter.tcst,meter.v[1],meter.v[2],meter.v[3],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.puUnits,voltage.use_vPhasor_in,voltage.v0