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.001333/0.001333, allocations: 99.19 kB / 16.5 MB, free: 6.641 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.001409/0.001409, allocations: 193.3 kB / 17.42 MB, free: 6.066 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.395/1.395, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1729/0.1729, allocations: 38.04 MB / 329.3 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 65.81 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1132, allocations: 58.06 MB / 456.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.003295/0.1166, allocations: 2.08 MB / 458.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006878/0.1173, allocations: 0.5337 MB / 458.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.062e-05/0.1173, allocations: 0 / 458.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.1175, allocations: 11.98 kB / 458.8 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.1176, allocations: 31.83 kB / 458.8 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.1178, allocations: 63.84 kB / 458.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.118, allocations: 111.7 kB / 459 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.172e-05/0.118, allocations: 4 kB / 459 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.459e-05/0.1181, allocations: 27.86 kB / 459 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.293e-05/0.1182, allocations: 23.91 kB / 459 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.798e-06/0.1182, allocations: 0 / 459 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.1183, allocations: 79.83 kB / 459.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.173e-05/0.1184, allocations: 15.92 kB / 459.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.258e-05/0.1184, allocations: 23.81 kB / 459.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.1186, allocations: 119.9 kB / 459.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1186, allocations: 0 / 459.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1186, allocations: 0 / 459.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.397e-06/0.1186, allocations: 0 / 459.3 MB, free: 5.352 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.0003656/0.119, allocations: 397 kB / 459.7 MB, free: 4.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.119, allocations: 8.031 kB / 459.7 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.1191, allocations: 8.844 kB / 459.7 MB, free: 4.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.1192, allocations: 176.2 kB / 459.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.1193, allocations: 384 / 459.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.1193, allocations: 8.125 kB / 459.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.1194, allocations: 65.62 kB / 459.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1194, allocations: 3.938 kB / 459.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.1194, allocations: 0 / 459.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1194, allocations: 3.984 kB / 459.9 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.272e-05/0.1195, allocations: 27.98 kB / 460 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/0.1196, allocations: 165.7 kB / 460.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.625e-05/0.1197, allocations: 54.56 kB / 460.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.548e-05/0.1197, allocations: 52.81 kB / 460.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-06/0.1197, allocations: 0 / 460.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.1198, allocations: 34.56 kB / 460.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 7.91e-07/0.1198, allocations: 0 / 460.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002554/0.12, allocations: 183.2 kB / 460.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.1201, allocations: 85.11 kB / 460.5 MB, free: 3.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.04e-05/0.1202, allocations: 134.2 kB / 460.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.1202, allocations: 25.7 kB / 460.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.937e-05/0.1203, allocations: 92.17 kB / 460.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.1203, allocations: 39.36 kB / 460.8 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.1204, allocations: 21.72 kB / 460.8 MB, free: 3.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.761e-05/0.1205, allocations: 318.8 kB / 461.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.595e-05/0.1205, allocations: 31.98 kB / 461.2 MB, free: 3.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.434e-05/0.1206, allocations: 31.98 kB / 461.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.1207, allocations: 156.2 kB / 461.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1207, allocations: 0 / 461.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001556/0.1209, allocations: 143.3 kB / 461.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.369e-05/0.1209, allocations: 53.69 kB / 461.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1209, allocations: 0 / 461.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.1209, allocations: 3.938 kB / 461.6 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.1209, allocations: 3.984 kB / 461.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.121, allocations: 3.984 kB / 461.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.306e-05/0.121, allocations: 4 kB / 461.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.121, allocations: 4 kB / 461.6 MB, free: 2.793 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.0001192/0.1211, allocations: 163.5 kB / 461.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.924e-05/0.1212, allocations: 11.84 kB / 461.7 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.322e-05/0.1212, allocations: 12.38 kB / 461.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1212, allocations: 4 kB / 461.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1212, allocations: 0 / 461.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.1212, allocations: 0 / 461.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.1213, allocations: 189.4 kB / 461.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1213, allocations: 0 / 461.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.1213, allocations: 0 / 461.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1213, allocations: 0 / 461.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.1213, allocations: 7.938 kB / 462 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1214, allocations: 3.984 kB / 462 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1214, allocations: 4 kB / 462 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.1217, allocations: 274.6 kB / 462.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.283e-05/0.1217, allocations: 81.11 kB / 462.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.1217, allocations: 0 / 462.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.073e-05/0.1218, allocations: 4 kB / 462.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.1218, allocations: 3.938 kB / 462.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.1218, allocations: 4 kB / 462.3 MB, free: 1.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.627e-05/0.1218, allocations: 95.81 kB / 462.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1219, allocations: 4.031 kB / 462.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1221, allocations: 35.98 kB / 462.4 MB, free: 1.801 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.0001561/0.1222, allocations: 115.2 kB / 462.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003063/0.1226, allocations: 291.2 kB / 462.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1226, allocations: 0 / 462.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.1227, allocations: 219.3 kB / 463.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.123, allocations: 20.25 kB / 463.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004053/0.1234, allocations: 296.7 kB / 463.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.1237, allocations: 0.7043 MB / 464.1 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.554e-05/0.1237, allocations: 4 kB / 464.1 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.929e-06/0.1237, allocations: 7.438 kB / 464.1 MB, free: 80 kB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1237, allocations: 0 / 464.1 MB, free: 80 kB / 334.1 MB Notification: Performance of Templates: time 0.003442/0.1272, allocations: 1.218 MB / 465.3 MB, free: 14.87 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.mat","/var/lib/jenkins/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