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.001492/0.001492, allocations: 114.6 kB / 17.7 MB, free: 5.309 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.001708/0.001708, allocations: 191 kB / 18.63 MB, free: 4.379 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.603/1.603, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2006/0.2006, allocations: 38.05 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001502, allocations: 63.91 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1921, allocations: 58.06 MB / 458.3 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.007458/0.1996, allocations: 4.198 MB / 462.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.2016, allocations: 0.947 MB / 463.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002078/0.2018, allocations: 11.94 kB / 463.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002737/0.2021, allocations: 51.5 kB / 463.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006514/0.2028, allocations: 194.9 kB / 463.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002671/0.2031, allocations: 103.8 kB / 463.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006577/0.2037, allocations: 486.3 kB / 464.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003526/0.2041, allocations: 147.6 kB / 464.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003276/0.2044, allocations: 211 kB / 464.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004727/0.2049, allocations: 247.1 kB / 464.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.387e-05/0.205, allocations: 28 kB / 464.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.093e-05/0.2051, allocations: 28 kB / 464.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2052, allocations: 123.6 kB / 465.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.2055, allocations: 175.1 kB / 465.2 MB, free: 424 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000487/0.206, allocations: 382.6 kB / 465.6 MB, free: 40 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.206, allocations: 0 / 465.6 MB, free: 40 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.206, allocations: 0 / 465.6 MB, free: 40 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.206, allocations: 0 / 465.6 MB, free: 40 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.001506/0.2075, allocations: 0.6984 MB / 466.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/0.2076, allocations: 15.89 kB / 466.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.986e-05/0.2077, allocations: 40.47 kB / 466.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00075/0.2084, allocations: 411 kB / 466.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.2085, allocations: 16.56 kB / 466.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.544e-05/0.2086, allocations: 28 kB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.2091, allocations: 360.7 kB / 467.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.2092, allocations: 4 kB / 467.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.2092, allocations: 12 kB / 467.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.2092, allocations: 8 kB / 467.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.2097, allocations: 254 kB / 467.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.2117, allocations: 1.438 MB / 468.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.2119, allocations: 157.1 kB / 469 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.2121, allocations: 81.61 kB / 469.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.2121, allocations: 7.984 kB / 469.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.2122, allocations: 42.5 kB / 469.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.2122, allocations: 0 / 469.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001351/0.2135, allocations: 0.6791 MB / 469.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.2136, allocations: 77.11 kB / 469.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.214, allocations: 304.4 kB / 470.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/0.214, allocations: 37.83 kB / 470.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.2142, allocations: 215.5 kB / 470.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.743e-05/0.2143, allocations: 55.2 kB / 470.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.117e-05/0.2144, allocations: 45.7 kB / 470.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2145, allocations: 342.8 kB / 470.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.2147, allocations: 67.95 kB / 470.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.2149, allocations: 173.3 kB / 471.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003851/0.2153, allocations: 259.9 kB / 471.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2153, allocations: 0 / 471.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004418/0.2157, allocations: 293.1 kB / 471.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.2158, allocations: 8 kB / 471.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.2158, allocations: 4 kB / 471.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.2158, allocations: 4 kB / 471.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.2161, allocations: 55.91 kB / 471.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.2161, allocations: 7.938 kB / 471.7 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.2163, allocations: 15.98 kB / 471.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.2163, allocations: 8 kB / 471.8 MB, free: 9.441 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.0002195/0.2165, allocations: 173.9 kB / 471.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.2166, allocations: 35.56 kB / 472 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004296/0.217, allocations: 227.5 kB / 472.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2171, allocations: 4 kB / 472.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2171, allocations: 0 / 472.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.2171, allocations: 0 / 472.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008544/0.2179, allocations: 0.6162 MB / 472.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.218, allocations: 0 / 472.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.2182, allocations: 47.94 kB / 472.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2182, allocations: 0 / 472.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.2182, allocations: 8 kB / 472.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2182, allocations: 0 / 472.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2182, allocations: 0 / 472.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005784/0.2188, allocations: 427.6 kB / 473.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.133e-05/0.2189, allocations: 108.8 kB / 473.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.2189, allocations: 12 kB / 473.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.2191, allocations: 11.92 kB / 473.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.2192, allocations: 11.98 kB / 473.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.2192, allocations: 11.88 kB / 473.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002196/0.2194, allocations: 215 kB / 473.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2194, allocations: 0 / 473.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003491/0.2198, allocations: 56 kB / 473.7 MB, free: 7.387 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.0001489/0.2199, allocations: 107.2 kB / 473.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.2203, allocations: 195.6 kB / 474 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2203, allocations: 0 / 474 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.2204, allocations: 91.81 kB / 474.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.221, allocations: 68.36 kB / 474.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.2222, allocations: 0.6373 MB / 474.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004504/0.2227, allocations: 0.8065 MB / 475.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001758/0.2229, allocations: 50.94 kB / 475.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.648e-05/0.223, allocations: 27.42 kB / 475.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.223, allocations: 0 / 475.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of Templates: time 0.007542/0.2305, allocations: 2.965 MB / 478.6 MB, free: 2.414 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 cvode -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