Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 113.9 kB / 17.68 MB, free: 5.383 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.001015/0.001015, allocations: 192 kB / 18.62 MB, free: 4.457 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.325/1.325, 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.1813/0.1813, allocations: 38.04 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 71.23 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.1005, allocations: 58.06 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.003428/0.1039, allocations: 2.04 MB / 460.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000723/0.1047, allocations: 0.5337 MB / 460.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.88e-05/0.1047, allocations: 0 / 460.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.1049, allocations: 7.938 kB / 460.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.105, allocations: 27.83 kB / 460.9 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.1053, allocations: 63.84 kB / 461 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001184/0.1054, allocations: 67.7 kB / 461 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.03e-05/0.1055, allocations: 4 kB / 461.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.263e-05/0.1056, allocations: 27.91 kB / 461.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.699e-05/0.1056, allocations: 31.84 kB / 461.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.1056, allocations: 4 kB / 461.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.1058, allocations: 67.89 kB / 461.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.54e-05/0.1059, allocations: 31.8 kB / 461.2 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.953e-05/0.1059, allocations: 19.81 kB / 461.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.1061, allocations: 111.7 kB / 461.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1061, allocations: 4 kB / 461.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1061, allocations: 0 / 461.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1061, allocations: 0 / 461.3 MB, free: 4.289 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000409/0.1065, allocations: 393 kB / 461.7 MB, free: 3.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1066, allocations: 15.89 kB / 461.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.1066, allocations: 8.844 kB / 461.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.1068, allocations: 176.2 kB / 461.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1068, allocations: 384 / 461.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.1068, allocations: 8.125 kB / 461.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.1069, allocations: 65.56 kB / 462 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.107, allocations: 4 kB / 462 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.107, allocations: 0 / 462 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.107, allocations: 0 / 462 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.967e-05/0.107, allocations: 27.98 kB / 462 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.1072, allocations: 165.7 kB / 462.2 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.132e-05/0.1073, allocations: 54.56 kB / 462.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.119e-05/0.1073, allocations: 52.75 kB / 462.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-06/0.1073, allocations: 4 kB / 462.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.1074, allocations: 34.56 kB / 462.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.193e-06/0.1074, allocations: 0 / 462.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.000289/0.1077, allocations: 175.3 kB / 462.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.1077, allocations: 89.09 kB / 462.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.1079, allocations: 130.2 kB / 462.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.1079, allocations: 25.7 kB / 462.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.647e-05/0.108, allocations: 96.16 kB / 462.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.851e-05/0.108, allocations: 39.36 kB / 462.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-05/0.1081, allocations: 17.72 kB / 462.9 MB, free: 2.516 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1082, allocations: 318.8 kB / 463.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.025e-05/0.1082, allocations: 31.92 kB / 463.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.272e-05/0.1083, allocations: 31.98 kB / 463.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.1084, allocations: 152.2 kB / 463.4 MB, free: 1.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1084, allocations: 4 kB / 463.4 MB, free: 1.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001558/0.1086, allocations: 143.3 kB / 463.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.471e-05/0.1086, allocations: 53.69 kB / 463.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1087, allocations: 0 / 463.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.1087, allocations: 3.938 kB / 463.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.404e-06/0.1087, allocations: 4 kB / 463.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1087, allocations: 0 / 463.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.551e-05/0.1087, allocations: 4 kB / 463.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.1087, allocations: 7.938 kB / 463.6 MB, free: 1.734 MB / 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.0001576/0.1089, allocations: 171.4 kB / 463.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.1089, allocations: 11.84 kB / 463.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.493e-05/0.1089, allocations: 12.38 kB / 463.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1089, allocations: 0 / 463.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.109, allocations: 0 / 463.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.109, allocations: 0 / 463.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.1091, allocations: 189.4 kB / 464 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1091, allocations: 0 / 464 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1091, allocations: 0 / 464 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1091, allocations: 0 / 464 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.1091, allocations: 4 kB / 464 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1091, allocations: 0 / 464 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1091, allocations: 0 / 464 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.1094, allocations: 286.5 kB / 464.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.1095, allocations: 81.11 kB / 464.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.1095, allocations: 0 / 464.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.98e-05/0.1095, allocations: 4 kB / 464.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.261e-05/0.1095, allocations: 3.938 kB / 464.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.1096, allocations: 4 kB / 464.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.911e-05/0.1096, allocations: 99.75 kB / 464.5 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1096, allocations: 4.031 kB / 464.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.1098, allocations: 28 kB / 464.5 MB, free: 0.7422 MB / 334.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.0001694/0.11, allocations: 115.2 kB / 464.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00034/0.1104, allocations: 295.3 kB / 464.9 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1104, allocations: 0 / 464.9 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.1105, allocations: 219.3 kB / 465.1 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.1108, allocations: 12.27 kB / 465.1 MB, free: 84 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005864/0.1114, allocations: 283 kB / 465.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.1118, allocations: 0.7002 MB / 466.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.499e-05/0.1118, allocations: 0 / 466.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.111e-05/0.1118, allocations: 7.438 kB / 466.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1118, allocations: 0 / 466.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of Templates: time 0.003498/0.1153, allocations: 1.294 MB / 467.4 MB, free: 13.76 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches