Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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.AC3ph.Precalculation.Z_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 114.5 kB / 17.69 MB, free: 5.312 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.00157/0.00157, 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.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1786/0.1786, allocations: 38.05 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 63.73 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1226, allocations: 58.06 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003179/0.1258, allocations: 2.036 MB / 460.4 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006613/0.1265, allocations: 0.5258 MB / 460.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.23e-05/0.1265, allocations: 4 kB / 460.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.1266, allocations: 11.92 kB / 460.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.779e-05/0.1267, allocations: 31.78 kB / 460.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002994/0.127, allocations: 63.83 kB / 461 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.1272, allocations: 63.77 kB / 461.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.42e-05/0.1272, allocations: 3.984 kB / 461.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.107e-05/0.1273, allocations: 31.91 kB / 461.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.057e-05/0.1274, allocations: 35.78 kB / 461.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.749e-06/0.1274, allocations: 0 / 461.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.1275, allocations: 75.83 kB / 461.2 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.542e-05/0.1276, allocations: 47.91 kB / 461.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.081e-05/0.1276, allocations: 39.56 kB / 461.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001872/0.1278, allocations: 151.4 kB / 461.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1278, allocations: 0 / 461.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1278, allocations: 4 kB / 461.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1279, allocations: 0 / 461.4 MB, free: 4.184 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0004622/0.1283, allocations: 483.6 kB / 461.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.1284, allocations: 12.03 kB / 461.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.956e-05/0.1284, allocations: 16.75 kB / 461.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.1286, allocations: 204.5 kB / 462.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.1286, allocations: 3.938 kB / 462.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.1286, allocations: 0 / 462.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.1288, allocations: 130.5 kB / 462.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.69e-06/0.1288, allocations: 0 / 462.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.1288, allocations: 0 / 462.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1288, allocations: 7.984 kB / 462.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.254e-05/0.1289, allocations: 92.28 kB / 462.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.1291, allocations: 198 kB / 462.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.1292, allocations: 154.9 kB / 462.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.1293, allocations: 141.2 kB / 462.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.1293, allocations: 8 kB / 462.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.1294, allocations: 30.56 kB / 462.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.132e-06/0.1294, allocations: 3.938 kB / 462.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0004802/0.1298, allocations: 468 kB / 463.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.1299, allocations: 109.1 kB / 463.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.13, allocations: 156.6 kB / 463.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.1301, allocations: 25.7 kB / 463.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.181e-05/0.1301, allocations: 100.8 kB / 463.7 MB, free: 1.668 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.386e-05/0.1302, allocations: 133.9 kB / 463.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.146e-05/0.1303, allocations: 29.7 kB / 463.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1304, allocations: 338.8 kB / 464.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/0.1305, allocations: 91.97 kB / 464.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.59e-05/0.1306, allocations: 88.95 kB / 464.4 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.1309, allocations: 376.4 kB / 464.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1309, allocations: 3.938 kB / 464.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00032/0.1312, allocations: 323 kB / 465.1 MB, free: 276 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.09e-05/0.1313, allocations: 85.62 kB / 465.2 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.1313, allocations: 0 / 465.2 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.1313, allocations: 0 / 465.2 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1313, allocations: 0 / 465.2 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.1313, allocations: 4 kB / 465.2 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.342e-05/0.1314, allocations: 19.75 kB / 465.2 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.1314, allocations: 4 kB / 465.2 MB, free: 156 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0002291/0.1317, allocations: 239.4 kB / 465.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.1317, allocations: 23.81 kB / 465.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.304e-05/0.1317, allocations: 9.969 kB / 465.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1317, allocations: 0 / 465.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.1317, allocations: 0 / 465.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1317, allocations: 0 / 465.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.1319, allocations: 229.3 kB / 465.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1319, allocations: 0 / 465.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.794e-06/0.1319, allocations: 7.938 kB / 465.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.1319, allocations: 0 / 465.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1319, allocations: 8 kB / 465.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1319, allocations: 3.984 kB / 465.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1319, allocations: 8 kB / 465.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.1327, allocations: 0.8926 MB / 466.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.1328, allocations: 108.7 kB / 466.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.1328, allocations: 4 kB / 466.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.34e-05/0.1329, allocations: 8 kB / 466.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.761e-05/0.1329, allocations: 8.031 kB / 466.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.1329, allocations: 11.94 kB / 466.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.406e-05/0.133, allocations: 118.2 kB / 466.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.133, allocations: 0 / 466.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002498/0.1333, allocations: 60 kB / 466.9 MB, free: 14.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001749/0.1334, allocations: 115.2 kB / 467 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.1347, allocations: 1.589 MB / 468.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1347, allocations: 0 / 468.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009158/0.1356, allocations: 1.366 MB / 470 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.1359, allocations: 27.92 kB / 470 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007872/0.1367, allocations: 0.614 MB / 470.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.1369, allocations: 0.7478 MB / 471.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.697e-05/0.137, allocations: 256 / 471.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.425e-05/0.137, allocations: 15.5 kB / 471.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.137, allocations: 0 / 471.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of Templates: time 0.005016/0.142, allocations: 2.656 MB / 474.1 MB, free: 7.129 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches