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.001546/0.001546, allocations: 103.5 kB / 16.92 MB, free: 5.848 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.001874/0.001874, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.362/1.362, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1708/0.1708, allocations: 38.04 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 75.59 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1099, allocations: 58.05 MB / 456.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005459/0.1154, allocations: 4.206 MB / 461.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.1168, allocations: 0.9353 MB / 462 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.117, allocations: 11.94 kB / 462 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.1172, allocations: 51.5 kB / 462.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005135/0.1177, allocations: 210.8 kB / 462.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.1179, allocations: 107.9 kB / 462.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004572/0.1184, allocations: 478.3 kB / 462.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.1186, allocations: 143.6 kB / 463 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.1189, allocations: 211.1 kB / 463.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003994/0.1193, allocations: 247.1 kB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.06e-05/0.1194, allocations: 24 kB / 463.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.05e-05/0.1194, allocations: 28 kB / 463.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.1196, allocations: 123.6 kB / 463.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.1198, allocations: 179.1 kB / 463.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.1202, allocations: 374.7 kB / 464.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1202, allocations: 0 / 464.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1202, allocations: 0 / 464.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1202, allocations: 0 / 464.1 MB, free: 0.7656 MB / 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.001185/0.1214, allocations: 0.6906 MB / 464.8 MB, free: 24 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1214, allocations: 11.89 kB / 464.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.1215, allocations: 44.64 kB / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005732/0.1221, allocations: 395 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.1222, allocations: 16.56 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.528e-05/0.1222, allocations: 28 kB / 465.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005078/0.1227, allocations: 360.7 kB / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1228, allocations: 0 / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.1228, allocations: 8 kB / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1228, allocations: 8 kB / 465.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000397/0.1232, allocations: 258 kB / 465.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.125, allocations: 1.45 MB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002809/0.1253, allocations: 161 kB / 467.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1254, allocations: 77.73 kB / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1254, allocations: 8 kB / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.1255, allocations: 38.5 kB / 467.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.1255, allocations: 0 / 467.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001119/0.1266, allocations: 0.674 MB / 468.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.1266, allocations: 81.11 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.1269, allocations: 304.6 kB / 468.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.127, allocations: 33.7 kB / 468.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.1271, allocations: 219.5 kB / 469 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.011e-05/0.1272, allocations: 47.27 kB / 469 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.907e-05/0.1273, allocations: 49.7 kB / 469.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1274, allocations: 342.8 kB / 469.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1275, allocations: 63.95 kB / 469.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.1277, allocations: 181.2 kB / 469.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.128, allocations: 256.9 kB / 469.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.128, allocations: 3.938 kB / 469.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003759/0.1284, allocations: 288.9 kB / 470.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1284, allocations: 8 kB / 470.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1284, allocations: 0 / 470.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1284, allocations: 8 kB / 470.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.1287, allocations: 55.91 kB / 470.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.1287, allocations: 7.984 kB / 470.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.1288, allocations: 11.94 kB / 470.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.1289, allocations: 16.33 kB / 470.3 MB, free: 10.18 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.00015/0.129, allocations: 169.8 kB / 470.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.224e-05/0.1291, allocations: 31.56 kB / 470.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003924/0.1295, allocations: 234.2 kB / 470.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1295, allocations: 0 / 470.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1295, allocations: 0 / 470.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1295, allocations: 7.984 kB / 470.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007263/0.1302, allocations: 0.6224 MB / 471.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1303, allocations: 0 / 471.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.1305, allocations: 35.97 kB / 471.4 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.1305, allocations: 4 kB / 471.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.1305, allocations: 4 kB / 471.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.104e-06/0.1305, allocations: 15.88 kB / 471.4 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1305, allocations: 0 / 471.4 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000524/0.131, allocations: 424.7 kB / 471.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/0.1311, allocations: 108.8 kB / 471.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.1312, allocations: 4 kB / 471.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.1313, allocations: 7.984 kB / 471.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.613e-05/0.1314, allocations: 15.98 kB / 471.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.1314, allocations: 4 kB / 471.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.1316, allocations: 218.9 kB / 472.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1316, allocations: 0 / 472.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.1319, allocations: 60.06 kB / 472.2 MB, free: 8.133 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.0001046/0.132, allocations: 103.2 kB / 472.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003287/0.1323, allocations: 203.6 kB / 472.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1324, allocations: 0.875 kB / 472.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.1325, allocations: 91.83 kB / 472.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/0.133, allocations: 75.59 kB / 472.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000958/0.134, allocations: 0.6438 MB / 473.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.1343, allocations: 0.8103 MB / 474.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.1345, allocations: 50.94 kB / 474.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.135e-05/0.1346, allocations: 27.44 kB / 474.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1346, allocations: 0 / 474.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of Templates: time 0.006302/0.1409, allocations: 2.979 MB / 477.2 MB, free: 3.129 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 -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","/var/lib/jenkins/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