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.001068/0.001068, allocations: 108.7 kB / 17.06 MB, free: 6.023 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.001097/0.001097, allocations: 192 kB / 18 MB, free: 5.105 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.434/1.434, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1751/0.1751, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 63.91 kB / 458.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4208/0.4224, allocations: 58.05 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003942/0.4264, allocations: 2.046 MB / 0.5061 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008682/0.4273, allocations: 0.5228 MB / 0.5066 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.087e-05/0.4274, allocations: 5.25 kB / 0.5066 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.4276, allocations: 9.984 kB / 0.5066 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.975e-05/0.4277, allocations: 29.38 kB / 0.5067 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.4281, allocations: 64.69 kB / 0.5067 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001343/0.4282, allocations: 58.48 kB / 0.5068 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.358e-05/0.4283, allocations: 7.719 kB / 0.5068 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.784e-05/0.4284, allocations: 24.98 kB / 0.5068 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.294e-05/0.4284, allocations: 35.56 kB / 0.5068 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.4284, allocations: 1.406 kB / 0.5068 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.4286, allocations: 78.69 kB / 0.5069 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-05/0.4287, allocations: 43.44 kB / 0.507 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.922e-05/0.4287, allocations: 40.75 kB / 0.507 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.429, allocations: 156 kB / 0.5072 GB, free: 5.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.429, allocations: 0 / 0.5072 GB, free: 5.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.429, allocations: 0 / 0.5072 GB, free: 5.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.429, allocations: 0 / 0.5072 GB, free: 5.734 MB / 382.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.000449/0.4295, allocations: 483.6 kB / 0.5076 GB, free: 5.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.4295, allocations: 13.92 kB / 0.5076 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.4296, allocations: 16.84 kB / 0.5076 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.4298, allocations: 191.2 kB / 0.5078 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.4298, allocations: 5.188 kB / 0.5078 GB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.4298, allocations: 1.312 kB / 0.5078 GB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.43, allocations: 129.6 kB / 0.508 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.43, allocations: 0 / 0.508 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.43, allocations: 1.219 kB / 0.508 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.4301, allocations: 4 kB / 0.508 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000116/0.4302, allocations: 96.22 kB / 0.508 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.4303, allocations: 205.7 kB / 0.5082 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.4305, allocations: 157.2 kB / 0.5084 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.4307, allocations: 142.1 kB / 0.5085 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.4307, allocations: 0.6094 kB / 0.5085 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.4307, allocations: 35.72 kB / 0.5086 GB, free: 4.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.022e-06/0.4307, allocations: 0 / 0.5086 GB, free: 4.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008061/0.4316, allocations: 474.7 kB / 0.509 GB, free: 4.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.637e-05/0.4316, allocations: 109.2 kB / 0.5091 GB, free: 4.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.4318, allocations: 148.5 kB / 0.5093 GB, free: 4.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.4318, allocations: 25.7 kB / 0.5093 GB, free: 4.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.613e-05/0.4319, allocations: 98.8 kB / 0.5094 GB, free: 4.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.432, allocations: 130.8 kB / 0.5095 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-05/0.4321, allocations: 31.94 kB / 0.5095 GB, free: 3.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4322, allocations: 340.8 kB / 0.5099 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.4324, allocations: 92.94 kB / 0.51 GB, free: 3.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.4325, allocations: 94.38 kB / 0.51 GB, free: 3.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005354/0.433, allocations: 365.1 kB / 0.5104 GB, free: 3.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.4331, allocations: 0 / 0.5104 GB, free: 3.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004489/0.4335, allocations: 327.2 kB / 0.5107 GB, free: 3.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.4336, allocations: 85.73 kB / 0.5108 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4336, allocations: 0 / 0.5108 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.4337, allocations: 2.281 kB / 0.5108 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.4337, allocations: 4.062 kB / 0.5108 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.4337, allocations: 0 / 0.5108 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.154e-05/0.4337, allocations: 23.91 kB / 0.5108 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/0.4338, allocations: 7.859 kB / 0.5108 GB, free: 3.254 MB / 382.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.0001964/0.434, allocations: 235.8 kB / 0.511 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-05/0.434, allocations: 24.97 kB / 0.5111 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.905e-05/0.434, allocations: 11.11 kB / 0.5111 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.434, allocations: 0 / 0.5111 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.434, allocations: 1.156 kB / 0.5111 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.434, allocations: 4 kB / 0.5111 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.4342, allocations: 226.9 kB / 0.5113 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4342, allocations: 0 / 0.5113 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.4342, allocations: 1.531 kB / 0.5113 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.4342, allocations: 0 / 0.5113 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.4343, allocations: 6.984 kB / 0.5113 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.4343, allocations: 7.938 kB / 0.5113 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4343, allocations: 1.281 kB / 0.5113 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.4354, allocations: 0.911 MB / 0.5122 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.899e-05/0.4354, allocations: 99.25 kB / 0.5123 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.4354, allocations: 6.25 kB / 0.5123 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.465e-05/0.4355, allocations: 6.438 kB / 0.5123 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.4355, allocations: 7.312 kB / 0.5123 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.4356, allocations: 6.375 kB / 0.5123 GB, free: 2.469 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.507e-05/0.4356, allocations: 116.1 kB / 0.5124 GB, free: 2.383 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4356, allocations: 1.344 kB / 0.5124 GB, free: 2.383 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003031/0.4359, allocations: 61.06 kB / 0.5125 GB, free: 2.379 MB / 382.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.0001921/0.4361, allocations: 119.5 kB / 0.5126 GB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.4377, allocations: 1.589 MB / 0.5142 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4377, allocations: 0 / 0.5142 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.439, allocations: 1.362 MB / 0.5155 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.4393, allocations: 31.27 kB / 0.5155 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.4403, allocations: 0.617 MB / 0.5161 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.4407, allocations: 0.747 MB / 0.5169 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.478e-05/0.4407, allocations: 2.578 kB / 0.5169 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.43e-05/0.4407, allocations: 13.09 kB / 0.5169 GB, free: 15.73 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4407, allocations: 0 / 0.5169 GB, free: 15.73 MB / 398.1 MB Notification: Performance of Templates: time 0.006613/0.4474, allocations: 2.702 MB / 0.5195 GB, free: 15.5 MB / 398.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","/var/lib/jenkins/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