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.001491/0.001491, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.665/1.665, allocations: 205.1 MB / 223.1 MB, free: 8.461 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.001131/0.001131, allocations: 97.16 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.183/0.183, allocations: 38.02 MB / 355.9 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009995/0.0009998, allocations: 59.91 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3755, allocations: 55.23 MB / 477.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.006713/0.3823, allocations: 4.855 MB / 482 MB, free: 6.484 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.3846, allocations: 1.169 MB / 483.1 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002717/0.3849, allocations: 27.28 kB / 483.1 MB, free: 5.645 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.3852, allocations: 40.09 kB / 483.2 MB, free: 5.625 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005402/0.3858, allocations: 181.5 kB / 483.4 MB, free: 5.52 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.386, allocations: 86.69 kB / 483.4 MB, free: 5.473 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007512/0.3868, allocations: 0.6357 MB / 484.1 MB, free: 5.246 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.3871, allocations: 129.1 kB / 484.2 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.3873, allocations: 192 kB / 484.4 MB, free: 5.121 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/0.3878, allocations: 241.3 kB / 484.6 MB, free: 5.039 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.657e-05/0.3879, allocations: 17.69 kB / 484.6 MB, free: 5.039 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.691e-05/0.3879, allocations: 22.09 kB / 484.7 MB, free: 5.035 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.3881, allocations: 115.3 kB / 484.8 MB, free: 4.992 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.3883, allocations: 166.7 kB / 484.9 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004796/0.3888, allocations: 359.1 kB / 485.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3888, allocations: 0 / 485.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3888, allocations: 0 / 485.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.3888, allocations: 0 / 485.3 MB, free: 4.762 MB / 314.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.001342/0.3902, allocations: 0.7031 MB / 486 MB, free: 4.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3902, allocations: 8.25 kB / 486 MB, free: 4.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.966e-05/0.3903, allocations: 39.72 kB / 486 MB, free: 4.211 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/0.3909, allocations: 378.5 kB / 486.4 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.391, allocations: 23.5 kB / 486.4 MB, free: 3.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.524e-05/0.391, allocations: 29.2 kB / 486.5 MB, free: 3.902 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.3916, allocations: 358.6 kB / 486.8 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3916, allocations: 0 / 486.8 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.3917, allocations: 11.81 kB / 486.8 MB, free: 3.703 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3917, allocations: 7.062 kB / 486.8 MB, free: 3.703 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.3922, allocations: 267.7 kB / 487.1 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.3938, allocations: 1.446 MB / 488.5 MB, free: 2.504 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002369/0.394, allocations: 147.6 kB / 488.7 MB, free: 2.422 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.3942, allocations: 89.98 kB / 488.8 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.3942, allocations: 2.75 kB / 488.8 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.3942, allocations: 36.95 kB / 488.8 MB, free: 2.332 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.3942, allocations: 0 / 488.8 MB, free: 2.332 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.001054/0.3953, allocations: 0.6829 MB / 489.5 MB, free: 1.871 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.3954, allocations: 84.02 kB / 489.6 MB, free: 1.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.3957, allocations: 297.1 kB / 489.9 MB, free: 1.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.3957, allocations: 25.7 kB / 489.9 MB, free: 1.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.3958, allocations: 224 kB / 490.1 MB, free: 1.395 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.03e-05/0.3959, allocations: 55.3 kB / 490.2 MB, free: 1.352 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.689e-05/0.3959, allocations: 49.61 kB / 490.2 MB, free: 1.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.854e-05/0.396, allocations: 338 kB / 490.5 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.3962, allocations: 68.44 kB / 490.6 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.3963, allocations: 167.1 kB / 490.8 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.3966, allocations: 262.8 kB / 491 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3966, allocations: 1.094 kB / 491 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003851/0.397, allocations: 292.9 kB / 491.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.397, allocations: 6.812 kB / 491.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3971, allocations: 3.344 kB / 491.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3971, allocations: 6.25 kB / 491.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.3973, allocations: 59.56 kB / 491.4 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.3973, allocations: 9.578 kB / 491.4 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.3975, allocations: 17.58 kB / 491.4 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.3975, allocations: 11.25 kB / 491.4 MB, free: 492 kB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.3977, allocations: 171.7 kB / 491.6 MB, free: 344 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.942e-05/0.3977, allocations: 32.67 kB / 491.6 MB, free: 324 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003714/0.3981, allocations: 234.2 kB / 491.9 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.3981, allocations: 2.562 kB / 491.9 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3981, allocations: 5.062 kB / 491.9 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.3981, allocations: 6.328 kB / 491.9 MB, free: 208 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007993/0.3989, allocations: 0.6207 MB / 492.5 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.399, allocations: 1.094 kB / 492.5 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.3992, allocations: 33.38 kB / 492.5 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3992, allocations: 2.594 kB / 492.5 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.3992, allocations: 6.078 kB / 492.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.3992, allocations: 2.109 kB / 492.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3992, allocations: 1.25 kB / 492.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003985/0.4032, allocations: 2.596 MB / 495.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.894e-05/0.4033, allocations: 103.9 kB / 495.2 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.4034, allocations: 14.98 kB / 495.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.4035, allocations: 11.3 kB / 495.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.4036, allocations: 13.8 kB / 495.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.4036, allocations: 5.359 kB / 495.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002778/0.4039, allocations: 211.5 kB / 495.5 MB, free: 13.86 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4039, allocations: 5.094 kB / 495.5 MB, free: 13.86 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005002/0.4044, allocations: 82.52 kB / 495.6 MB, free: 13.86 MB / 330.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 (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.0001308/0.4045, allocations: 103.2 kB / 495.7 MB, free: 13.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.405, allocations: 196 kB / 495.9 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.405, allocations: 0 / 495.9 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.4052, allocations: 91.7 kB / 496 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.4057, allocations: 62.86 kB / 496 MB, free: 13.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.4073, allocations: 0.9493 MB / 497 MB, free: 12.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/0.4078, allocations: 0.8122 MB / 497.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002595/0.4081, allocations: 56.73 kB / 497.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.4082, allocations: 26.66 kB / 497.9 MB, free: 12.25 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4082, allocations: 1.281 kB / 497.9 MB, free: 12.25 MB / 330.7 MB Notification: Performance of Templates: time 0.008318/0.4165, allocations: 3.637 MB / 0.4897 GB, free: 10.79 MB / 330.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@2/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