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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001254/0.001254, allocations: 192 kB / 18.62 MB, free: 4.434 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.353/1.353, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2274/0.2274, allocations: 38.04 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 60.06 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1188, allocations: 58.07 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.00703/0.1259, allocations: 4.19 MB / 462.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.1279, allocations: 0.9469 MB / 463.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004022/0.1283, allocations: 7.938 kB / 463.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.1287, allocations: 51.5 kB / 463.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007641/0.1294, allocations: 198.9 kB / 463.7 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.1298, allocations: 103.8 kB / 463.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007361/0.1305, allocations: 486.3 kB / 464.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/0.1308, allocations: 143.6 kB / 464.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004558/0.1313, allocations: 215.1 kB / 464.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005321/0.1318, allocations: 247.1 kB / 464.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.875e-05/0.1319, allocations: 24 kB / 464.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.981e-05/0.132, allocations: 28 kB / 464.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.1322, allocations: 119.7 kB / 465 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002213/0.1324, allocations: 179.1 kB / 465.2 MB, free: 404 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004253/0.1328, allocations: 382.6 kB / 465.6 MB, free: 20 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1328, allocations: 4 kB / 465.6 MB, free: 16 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1328, allocations: 0 / 465.6 MB, free: 16 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.1329, allocations: 0 / 465.6 MB, free: 16 kB / 334.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.001523/0.1344, allocations: 0.6984 MB / 466.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1344, allocations: 15.89 kB / 466.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.1346, allocations: 40.47 kB / 466.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007284/0.1353, allocations: 411 kB / 466.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.1353, allocations: 20.56 kB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.1354, allocations: 24 kB / 466.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.136, allocations: 360.7 kB / 467.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.136, allocations: 0 / 467.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.136, allocations: 8 kB / 467.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.136, allocations: 8 kB / 467.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000411/0.1364, allocations: 258 kB / 467.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.1383, allocations: 1.438 MB / 468.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.1385, allocations: 157 kB / 469 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.1386, allocations: 77.73 kB / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.1387, allocations: 0 / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.1387, allocations: 50.48 kB / 469.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.1387, allocations: 0 / 469.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001091/0.1398, allocations: 0.673 MB / 469.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.1399, allocations: 81.11 kB / 469.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.1402, allocations: 300.5 kB / 470.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.1402, allocations: 25.7 kB / 470.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1403, allocations: 227.7 kB / 470.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.1404, allocations: 51.27 kB / 470.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.719e-05/0.1405, allocations: 49.7 kB / 470.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1406, allocations: 342.7 kB / 470.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1407, allocations: 63.95 kB / 470.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1409, allocations: 189.2 kB / 471.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.1412, allocations: 252.6 kB / 471.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1412, allocations: 4 kB / 471.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003975/0.1416, allocations: 281.3 kB / 471.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1416, allocations: 8 kB / 471.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.433e-06/0.1417, allocations: 7.938 kB / 471.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1417, allocations: 4 kB / 471.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.1419, allocations: 59.91 kB / 471.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.142, allocations: 15.92 kB / 471.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.1421, allocations: 11.94 kB / 471.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.1422, allocations: 15.98 kB / 471.8 MB, free: 9.414 MB / 350.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 () * 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.0001578/0.1423, allocations: 165.8 kB / 471.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.355e-05/0.1424, allocations: 35.56 kB / 471.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003734/0.1428, allocations: 227.5 kB / 472.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.1428, allocations: 4 kB / 472.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1428, allocations: 0 / 472.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1428, allocations: 3.984 kB / 472.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007345/0.1436, allocations: 0.6201 MB / 472.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1436, allocations: 3.984 kB / 472.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.1438, allocations: 35.92 kB / 472.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.1438, allocations: 8.031 kB / 472.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.1438, allocations: 4 kB / 472.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.1438, allocations: 0 / 472.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1439, allocations: 4 kB / 472.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.1444, allocations: 423.9 kB / 473.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.045e-05/0.1445, allocations: 108.8 kB / 473.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.1445, allocations: 8.062 kB / 473.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.1447, allocations: 7.984 kB / 473.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.41e-05/0.1447, allocations: 19.92 kB / 473.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.1447, allocations: 4 kB / 473.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001943/0.1449, allocations: 215 kB / 473.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1449, allocations: 0 / 473.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.1453, allocations: 56 kB / 473.7 MB, free: 7.371 MB / 350.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 () * 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.000109/0.1454, allocations: 111.2 kB / 473.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003247/0.1457, allocations: 187 kB / 474 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1457, allocations: 0 / 474 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.1459, allocations: 95.83 kB / 474.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005024/0.1464, allocations: 75.55 kB / 474.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.1474, allocations: 0.6412 MB / 474.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.1478, allocations: 0.8026 MB / 475.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001655/0.148, allocations: 58.88 kB / 475.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.615e-05/0.1481, allocations: 23.44 kB / 475.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1481, allocations: 0 / 475.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of Templates: time 0.006458/0.1546, allocations: 2.977 MB / 478.6 MB, free: 2.379 MB / 350.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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