Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008984/0.0008984, allocations: 183.1 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.179/1.179, allocations: 225.7 MB / 243.2 MB, free: 8.508 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007748/0.0007747, allocations: 99.86 kB / 294.4 MB, free: 9.516 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2668/0.2668, allocations: 38.19 MB / 383.7 MB, free: 40.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002644, allocations: 8 kB / 453.5 MB, free: 8.758 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2543, allocations: 59.15 MB / 0.5007 GB, free: 39.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.003956/0.2583, allocations: 4.371 MB / 0.5049 GB, free: 38.65 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.2599, allocations: 1.307 MB / 0.5062 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002055/0.2602, allocations: 28.62 kB / 0.5063 GB, free: 37.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.2603, allocations: 41.39 kB / 0.5063 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003984/0.2607, allocations: 178.5 kB / 0.5065 GB, free: 37.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.2609, allocations: 93.48 kB / 0.5066 GB, free: 37.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005796/0.2615, allocations: 0.6253 MB / 0.5072 GB, free: 37.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002515/0.2618, allocations: 129.6 kB / 0.5073 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.262, allocations: 174.7 kB / 0.5075 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003901/0.2624, allocations: 240.4 kB / 0.5077 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.245e-05/0.2625, allocations: 16.22 kB / 0.5077 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.2626, allocations: 13 kB / 0.5077 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.2627, allocations: 100.9 kB / 0.5078 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.2629, allocations: 190.1 kB / 0.508 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.2632, allocations: 357 kB / 0.5083 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2632, allocations: 1.844 kB / 0.5083 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2632, allocations: 0 / 0.5083 GB, free: 36.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2632, allocations: 2.594 kB / 0.5083 GB, free: 36.93 MB / 378.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.001019/0.2643, allocations: 0.6382 MB / 0.509 GB, free: 36.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.2643, allocations: 9.547 kB / 0.509 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.2644, allocations: 40.53 kB / 0.509 GB, free: 36.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.2649, allocations: 383.6 kB / 0.5094 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.2649, allocations: 19.16 kB / 0.5094 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/0.2649, allocations: 27.61 kB / 0.5094 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.2654, allocations: 358 kB / 0.5098 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2655, allocations: 0.9688 kB / 0.5098 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.2655, allocations: 11.22 kB / 0.5098 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.2655, allocations: 7.969 kB / 0.5098 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.2659, allocations: 258.3 kB / 0.51 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.2673, allocations: 1.455 MB / 0.5114 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.2675, allocations: 152.6 kB / 0.5116 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.309e-05/0.2676, allocations: 82.77 kB / 0.5117 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.2676, allocations: 4 kB / 0.5117 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.2676, allocations: 41.25 kB / 0.5117 GB, free: 34.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.2676, allocations: 0 / 0.5117 GB, free: 34.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008647/0.2685, allocations: 0.6726 MB / 0.5124 GB, free: 34.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.2685, allocations: 79.58 kB / 0.5124 GB, free: 34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/0.2688, allocations: 299.2 kB / 0.5127 GB, free: 33.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.2688, allocations: 25.7 kB / 0.5128 GB, free: 33.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.88e-05/0.2689, allocations: 222.1 kB / 0.513 GB, free: 33.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.436e-05/0.2689, allocations: 56.67 kB / 0.513 GB, free: 33.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/0.2689, allocations: 6.719 kB / 0.513 GB, free: 33.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/0.269, allocations: 338.2 kB / 0.5133 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.93e-05/0.2691, allocations: 66.73 kB / 0.5134 GB, free: 33.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.2692, allocations: 170 kB / 0.5136 GB, free: 33.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.2694, allocations: 263.3 kB / 0.5138 GB, free: 32.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2694, allocations: 0 / 0.5138 GB, free: 32.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003058/0.2697, allocations: 287.8 kB / 0.5141 GB, free: 32.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.2698, allocations: 5.969 kB / 0.5141 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2698, allocations: 7.016 kB / 0.5141 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2698, allocations: 5.875 kB / 0.5141 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.27, allocations: 61.77 kB / 0.5142 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.27, allocations: 6.844 kB / 0.5142 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.2702, allocations: 16.11 kB / 0.5142 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.2702, allocations: 9.156 kB / 0.5142 GB, free: 32.74 MB / 378.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.000109/0.2703, allocations: 173.3 kB / 0.5144 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.2704, allocations: 31.16 kB / 0.5144 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000297/0.2707, allocations: 231 kB / 0.5146 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.2707, allocations: 3.062 kB / 0.5146 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2707, allocations: 4 kB / 0.5146 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2707, allocations: 1.062 kB / 0.5146 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005411/0.2713, allocations: 0.6272 MB / 0.5152 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2713, allocations: 0 / 0.5152 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.2714, allocations: 40.34 kB / 0.5153 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2715, allocations: 0 / 0.5153 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.2715, allocations: 6.75 kB / 0.5153 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.2715, allocations: 10.25 kB / 0.5153 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2715, allocations: 0 / 0.5153 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003937/0.2719, allocations: 425.1 kB / 0.5157 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.2719, allocations: 104.8 kB / 0.5158 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.272, allocations: 11.06 kB / 0.5158 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.2721, allocations: 6.109 kB / 0.5158 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.673e-05/0.2722, allocations: 15.5 kB / 0.5158 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.2722, allocations: 2.844 kB / 0.5158 GB, free: 31.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001439/0.2723, allocations: 213.6 kB / 0.516 GB, free: 31.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2724, allocations: 2.5 kB / 0.516 GB, free: 31.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002809/0.2726, allocations: 58.72 kB / 0.5161 GB, free: 31.52 MB / 378.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 7.644e-05/0.2727, allocations: 109.8 kB / 0.5162 GB, free: 31.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002474/0.273, allocations: 189.9 kB / 0.5164 GB, free: 31.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.273, allocations: 4.812 kB / 0.5164 GB, free: 31.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.2731, allocations: 86.52 kB / 0.5165 GB, free: 31.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004486/0.2736, allocations: 68.67 kB / 0.5165 GB, free: 31.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008175/0.2744, allocations: 0.8117 MB / 0.5173 GB, free: 30.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.2746, allocations: 0.8049 MB / 0.5181 GB, free: 30.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001721/0.2748, allocations: 54.27 kB / 0.5182 GB, free: 30.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.567e-05/0.2748, allocations: 28.7 kB / 0.5182 GB, free: 30.05 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.2749, allocations: 3.156 kB / 0.5182 GB, free: 30.05 MB / 378.7 MB Notification: Performance of Templates: time 0.004923/0.2798, allocations: 2.808 MB / 0.5209 GB, free: 29.82 MB / 378.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/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