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.0009004/0.0009004, allocations: 89.69 kB / 16.31 MB, free: 6.457 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.0008245/0.0008246, allocations: 180.6 kB / 17.21 MB, free: 6.328 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.218/1.218, allocations: 223.3 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2834/0.2834, allocations: 38.07 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002849, allocations: 15.98 kB / 400.1 MB, free: 9.273 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2352, allocations: 59.16 MB / 459.2 MB, free: 30.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.003841/0.2391, allocations: 4.258 MB / 463.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.2409, allocations: 1.083 MB / 464.6 MB, free: 26.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.2412, allocations: 21.06 kB / 464.6 MB, free: 26.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.2414, allocations: 66.05 kB / 464.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000518/0.2419, allocations: 215.1 kB / 464.9 MB, free: 26.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002554/0.2422, allocations: 123.2 kB / 465 MB, free: 26.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005351/0.2427, allocations: 0.5148 MB / 465.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.2429, allocations: 111.2 kB / 465.6 MB, free: 25.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.2432, allocations: 173.7 kB / 465.8 MB, free: 25.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003736/0.2436, allocations: 228.9 kB / 466 MB, free: 25.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.785e-05/0.2436, allocations: 13.78 kB / 466 MB, free: 25.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.006e-05/0.2437, allocations: 13.91 kB / 466 MB, free: 25.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.2438, allocations: 104.3 kB / 466.1 MB, free: 25.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.741e-05/0.2439, allocations: 88.48 kB / 466.2 MB, free: 25.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002855/0.2442, allocations: 279.2 kB / 466.5 MB, free: 25.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2442, allocations: 0 / 466.5 MB, free: 25.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2442, allocations: 0 / 466.5 MB, free: 25.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.2442, allocations: 1.25 kB / 466.5 MB, free: 25.47 MB / 350.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.0009999/0.2452, allocations: 0.6439 MB / 467.1 MB, free: 24.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.2452, allocations: 8.688 kB / 467.1 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.1e-05/0.2453, allocations: 39.59 kB / 467.2 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/0.2458, allocations: 378.5 kB / 467.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.2459, allocations: 19.12 kB / 467.6 MB, free: 24.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.2459, allocations: 24.61 kB / 467.6 MB, free: 24.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/0.2464, allocations: 359.9 kB / 467.9 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.2464, allocations: 1.75 kB / 468 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.2464, allocations: 10.97 kB / 468 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2465, allocations: 6.938 kB / 468 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000384/0.2469, allocations: 263.6 kB / 468.2 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.2483, allocations: 1.442 MB / 469.7 MB, free: 23.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/0.2485, allocations: 152 kB / 469.8 MB, free: 23.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.2486, allocations: 89.53 kB / 469.9 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.2487, allocations: 5.328 kB / 469.9 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.2487, allocations: 37.78 kB / 469.9 MB, free: 23.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.2487, allocations: 0 / 469.9 MB, free: 23.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009921/0.2497, allocations: 0.6789 MB / 470.6 MB, free: 22.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.2497, allocations: 79.36 kB / 470.7 MB, free: 22.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.25, allocations: 298.5 kB / 471 MB, free: 22.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.25, allocations: 26.73 kB / 471 MB, free: 22.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.507e-05/0.2501, allocations: 215.6 kB / 471.2 MB, free: 22.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.2502, allocations: 55.73 kB / 471.3 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.2502, allocations: 5.125 kB / 471.3 MB, free: 22.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.085e-05/0.2503, allocations: 342 kB / 471.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.2504, allocations: 67 kB / 471.7 MB, free: 21.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.2505, allocations: 162.1 kB / 471.8 MB, free: 21.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.2507, allocations: 89.91 kB / 471.9 MB, free: 21.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2507, allocations: 10 kB / 471.9 MB, free: 21.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003694/0.2511, allocations: 278 kB / 472.2 MB, free: 21.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.2511, allocations: 6.406 kB / 472.2 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.2511, allocations: 4.969 kB / 472.2 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.2511, allocations: 5.875 kB / 472.2 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.2514, allocations: 63.75 kB / 472.3 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.2514, allocations: 10.09 kB / 472.3 MB, free: 21.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.2515, allocations: 13.12 kB / 472.3 MB, free: 21.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.2516, allocations: 10.12 kB / 472.3 MB, free: 21.44 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.2517, allocations: 172.2 kB / 472.5 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.87e-05/0.2518, allocations: 25.16 kB / 472.5 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003614/0.2521, allocations: 240.7 kB / 472.8 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2521, allocations: 6.062 kB / 472.8 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2522, allocations: 1.609 kB / 472.8 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2522, allocations: 5.688 kB / 472.8 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006667/0.2528, allocations: 0.6264 MB / 473.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2529, allocations: 0 / 473.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.253, allocations: 34.28 kB / 473.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.2531, allocations: 2.188 kB / 473.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.2531, allocations: 6.938 kB / 473.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.2531, allocations: 6.203 kB / 473.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2531, allocations: 0 / 473.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004414/0.2535, allocations: 432.4 kB / 473.9 MB, free: 20.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.99e-05/0.2536, allocations: 100.2 kB / 474 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.2536, allocations: 7.688 kB / 474 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.2538, allocations: 6.609 kB / 474 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.197e-05/0.2538, allocations: 19.53 kB / 474 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.2539, allocations: 3.562 kB / 474 MB, free: 20.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.254, allocations: 210.5 kB / 474.2 MB, free: 20.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.254, allocations: 0 / 474.2 MB, free: 20.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.2544, allocations: 55.78 kB / 474.3 MB, free: 20.22 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 (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 7.816e-05/0.2545, allocations: 103 kB / 474.4 MB, free: 20.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002783/0.2547, allocations: 196.7 kB / 474.6 MB, free: 20.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2547, allocations: 0 / 474.6 MB, free: 20.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.2549, allocations: 86.3 kB / 474.6 MB, free: 20.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.2553, allocations: 62.72 kB / 474.7 MB, free: 20.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008887/0.2562, allocations: 0.7999 MB / 475.5 MB, free: 19.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.2565, allocations: 0.8098 MB / 476.3 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.2567, allocations: 51.58 kB / 476.4 MB, free: 18.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.988e-05/0.2567, allocations: 29.56 kB / 476.4 MB, free: 18.78 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2567, allocations: 0 / 476.4 MB, free: 18.78 MB / 350.1 MB Notification: Performance of Templates: time 0.005412/0.2622, allocations: 2.738 MB / 479.1 MB, free: 17.81 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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