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.001037/0.001037, allocations: 92.09 kB / 16.65 MB, free: 6.535 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.001293/0.001294, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.319/1.319, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1705/0.1705, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 8 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09656, allocations: 59.17 MB / 459.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.004931/0.1015, allocations: 4.467 MB / 464.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.1031, allocations: 1.107 MB / 465.5 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.1033, allocations: 23.81 kB / 465.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.1035, allocations: 39.69 kB / 465.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000414/0.1039, allocations: 191.1 kB / 465.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.1041, allocations: 83.91 kB / 465.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005905/0.1047, allocations: 0.627 MB / 466.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.1049, allocations: 131.4 kB / 466.5 MB, free: 408 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.1052, allocations: 167.2 kB / 466.7 MB, free: 240 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003676/0.1055, allocations: 247 kB / 466.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.107e-05/0.1056, allocations: 16 kB / 467 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.398e-05/0.1056, allocations: 16 kB / 467 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.1058, allocations: 103.7 kB / 467.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.1059, allocations: 180.8 kB / 467.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002973/0.1062, allocations: 350.6 kB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1062, allocations: 0 / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1062, allocations: 4 kB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1063, allocations: 0 / 467.6 MB, free: 15.33 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.001127/0.1074, allocations: 0.6439 MB / 468.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.1074, allocations: 8.031 kB / 468.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.048e-05/0.1075, allocations: 40.47 kB / 468.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.1081, allocations: 387 kB / 468.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.1081, allocations: 24.56 kB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.1082, allocations: 24 kB / 468.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004889/0.1087, allocations: 356.7 kB / 469.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.1087, allocations: 3.938 kB / 469.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/0.1087, allocations: 16 kB / 469.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1087, allocations: 8 kB / 469.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000381/0.1091, allocations: 258 kB / 469.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.1107, allocations: 1.446 MB / 470.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.1109, allocations: 153 kB / 470.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1111, allocations: 81.73 kB / 471 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.1111, allocations: 4 kB / 471 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.1111, allocations: 34.5 kB / 471.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.1111, allocations: 0 / 471.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001045/0.1122, allocations: 0.6875 MB / 471.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.1122, allocations: 77.11 kB / 471.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002806/0.1125, allocations: 300.5 kB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.1125, allocations: 29.7 kB / 472.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.1127, allocations: 223.5 kB / 472.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.1128, allocations: 51.27 kB / 472.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.195e-05/0.1128, allocations: 29.83 kB / 472.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.113, allocations: 334.8 kB / 472.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.1131, allocations: 67.95 kB / 472.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1133, allocations: 172.8 kB / 473 MB, free: 9.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003008/0.1136, allocations: 259.7 kB / 473.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1136, allocations: 4 kB / 473.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003847/0.114, allocations: 280.9 kB / 473.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.114, allocations: 8 kB / 473.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.114, allocations: 4.438 kB / 473.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.114, allocations: 8 kB / 473.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.1143, allocations: 63.89 kB / 473.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.1143, allocations: 4 kB / 473.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/0.1145, allocations: 19.89 kB / 473.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.1145, allocations: 12 kB / 473.7 MB, free: 8.816 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.0001504/0.1146, allocations: 169.7 kB / 473.8 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.77e-05/0.1147, allocations: 27.66 kB / 473.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003841/0.1151, allocations: 239.5 kB / 474.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1151, allocations: 7.984 kB / 474.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.1151, allocations: 0 / 474.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1151, allocations: 0 / 474.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006963/0.1158, allocations: 0.6261 MB / 474.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1158, allocations: 0 / 474.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.116, allocations: 35.98 kB / 474.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.116, allocations: 0 / 474.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.1161, allocations: 4 kB / 474.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.1161, allocations: 7.969 kB / 474.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1161, allocations: 11.91 kB / 474.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005573/0.1166, allocations: 426.9 kB / 475.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.109e-05/0.1167, allocations: 104.8 kB / 475.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.1168, allocations: 4 kB / 475.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.1169, allocations: 11.98 kB / 475.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.912e-05/0.117, allocations: 12.05 kB / 475.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.117, allocations: 8 kB / 475.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.1172, allocations: 215 kB / 475.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.1172, allocations: 3.938 kB / 475.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003229/0.1175, allocations: 63.94 kB / 475.6 MB, free: 6.75 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.0001037/0.1176, allocations: 103.2 kB / 475.7 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002995/0.1179, allocations: 190.7 kB / 475.9 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.118, allocations: 4 kB / 475.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.1181, allocations: 83.89 kB / 476 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.1186, allocations: 65.55 kB / 476 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.1197, allocations: 0.8127 MB / 476.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.1201, allocations: 0.8107 MB / 477.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001792/0.1203, allocations: 50.94 kB / 477.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.662e-05/0.1204, allocations: 23.44 kB / 477.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1204, allocations: 0 / 477.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of Templates: time 0.006022/0.1264, allocations: 2.809 MB / 480.5 MB, free: 1.766 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