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.001608/0.001608, allocations: 100.3 kB / 17.59 MB, free: 5.578 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.001765/0.001765, allocations: 191.3 kB / 18.51 MB, free: 4.656 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.341/1.341, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1734/0.1734, allocations: 38.03 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 68.05 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09443, allocations: 58.06 MB / 457.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005701/0.1002, allocations: 4.198 MB / 461.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1017, allocations: 0.9392 MB / 462.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.1019, allocations: 11.88 kB / 462.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001922/0.1021, allocations: 55.5 kB / 462.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005354/0.1027, allocations: 194.9 kB / 462.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.103, allocations: 111.8 kB / 463 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004978/0.1035, allocations: 478.3 kB / 463.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.1037, allocations: 147.6 kB / 463.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002905/0.104, allocations: 207.1 kB / 463.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.1044, allocations: 247.1 kB / 464.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-05/0.1045, allocations: 24 kB / 464.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.257e-05/0.1046, allocations: 28 kB / 464.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.1047, allocations: 123.6 kB / 464.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.1049, allocations: 179.1 kB / 464.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.1053, allocations: 370.7 kB / 464.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1053, allocations: 4 kB / 464.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1053, allocations: 0 / 464.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.1053, allocations: 0 / 464.8 MB, free: 0.7617 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.001316/0.1066, allocations: 0.6945 MB / 465.5 MB, free: 16 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1067, allocations: 11.89 kB / 465.5 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.1068, allocations: 44.45 kB / 465.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005796/0.1074, allocations: 387.1 kB / 465.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.1074, allocations: 16.56 kB / 466 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.1075, allocations: 28 kB / 466 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.108, allocations: 360.7 kB / 466.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.108, allocations: 3.938 kB / 466.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.108, allocations: 12 kB / 466.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.1081, allocations: 8 kB / 466.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003997/0.1085, allocations: 250 kB / 466.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.1102, allocations: 1.458 MB / 468.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/0.1105, allocations: 153.1 kB / 468.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.1106, allocations: 77.73 kB / 468.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.1106, allocations: 11.94 kB / 468.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.1107, allocations: 46.44 kB / 468.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.1107, allocations: 0 / 468.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0011/0.1118, allocations: 0.6669 MB / 469 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.1118, allocations: 81.23 kB / 469.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.1121, allocations: 304.5 kB / 469.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.1122, allocations: 29.7 kB / 469.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1123, allocations: 219.5 kB / 469.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/0.1123, allocations: 55.2 kB / 469.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.498e-05/0.1124, allocations: 49.7 kB / 469.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1125, allocations: 342.8 kB / 470.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.1127, allocations: 63.95 kB / 470.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.1128, allocations: 177.3 kB / 470.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.1132, allocations: 259.8 kB / 470.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1132, allocations: 0 / 470.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000409/0.1136, allocations: 288.8 kB / 470.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1136, allocations: 4 kB / 470.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1136, allocations: 4 kB / 470.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1136, allocations: 8 kB / 470.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.1139, allocations: 55.84 kB / 470.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.1139, allocations: 11.98 kB / 470.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1141, allocations: 12.38 kB / 470.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.1141, allocations: 16 kB / 470.9 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.0001489/0.1143, allocations: 169.7 kB / 471.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.1143, allocations: 31.56 kB / 471.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003635/0.1147, allocations: 238.1 kB / 471.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1147, allocations: 0 / 471.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1147, allocations: 0 / 471.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1147, allocations: 7.984 kB / 471.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007127/0.1155, allocations: 0.6162 MB / 472 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1155, allocations: 0 / 472 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.1157, allocations: 39.91 kB / 472 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.1157, allocations: 4 kB / 472 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.1157, allocations: 4 kB / 472 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1157, allocations: 4 kB / 472 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1157, allocations: 0 / 472 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005005/0.1162, allocations: 437.3 kB / 472.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.246e-05/0.1163, allocations: 108.8 kB / 472.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.1164, allocations: 4 kB / 472.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.1165, allocations: 7.984 kB / 472.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.1166, allocations: 15.98 kB / 472.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.1166, allocations: 4 kB / 472.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.1168, allocations: 215 kB / 472.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1168, allocations: 4.062 kB / 472.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003412/0.1171, allocations: 56 kB / 472.9 MB, free: 8.129 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.0001007/0.1172, allocations: 103.2 kB / 473 MB, free: 8.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003435/0.1176, allocations: 207.6 kB / 473.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1176, allocations: 0.875 kB / 473.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.1177, allocations: 91.89 kB / 473.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.1183, allocations: 75.62 kB / 473.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.1193, allocations: 0.6821 MB / 474 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.1197, allocations: 0.8026 MB / 474.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.177e-05/0.1198, allocations: 27.44 kB / 474.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of SimCode: time 1.743e-06/0.1198, allocations: 0 / 474.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of Templates: time 0.006017/0.1258, allocations: 3.857 MB / 478.7 MB, free: 2.234 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/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,meter.p,meter.v,time