Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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_matrixEqCirc2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001703/0.001703, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.386/1.386, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1896/0.1896, allocations: 38.03 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001302, allocations: 63.89 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3382, allocations: 58.05 MB / 0.5048 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.00314/0.3414, allocations: 2.046 MB / 0.5068 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007478/0.3421, allocations: 0.5273 MB / 0.5073 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.29e-05/0.3422, allocations: 0 / 0.5073 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.3424, allocations: 13.88 kB / 0.5073 GB, free: 6.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.05e-05/0.3425, allocations: 22.92 kB / 0.5073 GB, free: 6.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000366/0.3428, allocations: 66.77 kB / 0.5074 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001296/0.343, allocations: 63.02 kB / 0.5074 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.134e-05/0.343, allocations: 8 kB / 0.5074 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.199e-05/0.3431, allocations: 28.64 kB / 0.5075 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.431e-05/0.3432, allocations: 32.86 kB / 0.5075 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.3432, allocations: 1.844 kB / 0.5075 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.3434, allocations: 73.67 kB / 0.5076 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.87e-05/0.3434, allocations: 27.81 kB / 0.5076 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.218e-05/0.3435, allocations: 32.41 kB / 0.5076 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002195/0.3437, allocations: 123.5 kB / 0.5078 GB, free: 5.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3437, allocations: 0 / 0.5078 GB, free: 5.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3437, allocations: 0 / 0.5078 GB, free: 5.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3437, allocations: 4 kB / 0.5078 GB, free: 5.852 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0003805/0.3441, allocations: 436 kB / 0.5082 GB, free: 5.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.3442, allocations: 9.656 kB / 0.5082 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.3442, allocations: 17 kB / 0.5082 GB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.3444, allocations: 187.5 kB / 0.5084 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.3444, allocations: 1.531 kB / 0.5084 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.3444, allocations: 5.062 kB / 0.5084 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.3446, allocations: 91.67 kB / 0.5085 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.3446, allocations: 0 / 0.5085 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.3446, allocations: 6.219 kB / 0.5085 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3446, allocations: 0 / 0.5085 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.934e-05/0.3447, allocations: 60.03 kB / 0.5085 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.3448, allocations: 179.6 kB / 0.5087 GB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.3449, allocations: 97.56 kB / 0.5088 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.92e-05/0.345, allocations: 90.62 kB / 0.5089 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.3451, allocations: 3.938 kB / 0.5089 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.3451, allocations: 36.34 kB / 0.5089 GB, free: 4.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 9.92e-07/0.3451, allocations: 5.062 kB / 0.5089 GB, free: 4.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005237/0.3456, allocations: 295.7 kB / 0.5092 GB, free: 4.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.3457, allocations: 98.7 kB / 0.5093 GB, free: 4.586 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.3458, allocations: 133 kB / 0.5094 GB, free: 4.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.417e-06/0.3458, allocations: 25.7 kB / 0.5095 GB, free: 4.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.014e-05/0.3459, allocations: 93.77 kB / 0.5095 GB, free: 4.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.598e-05/0.3459, allocations: 80.62 kB / 0.5096 GB, free: 4.297 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.346, allocations: 29.52 kB / 0.5096 GB, free: 4.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.553e-05/0.3461, allocations: 328.3 kB / 0.51 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.544e-05/0.3462, allocations: 60.25 kB / 0.51 GB, free: 3.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.707e-05/0.3462, allocations: 57.56 kB / 0.5101 GB, free: 3.926 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.3465, allocations: 247 kB / 0.5103 GB, free: 3.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3465, allocations: 0 / 0.5103 GB, free: 3.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002501/0.3468, allocations: 231.2 kB / 0.5105 GB, free: 3.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.008e-05/0.3469, allocations: 63.3 kB / 0.5106 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3469, allocations: 1.375 kB / 0.5106 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3469, allocations: 4.062 kB / 0.5106 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.954e-06/0.3469, allocations: 0.75 kB / 0.5106 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3469, allocations: 4.953 kB / 0.5106 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.883e-05/0.347, allocations: 13.12 kB / 0.5106 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.347, allocations: 9.031 kB / 0.5106 GB, free: 3.664 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.0001483/0.3472, allocations: 193.4 kB / 0.5108 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.3472, allocations: 13.52 kB / 0.5108 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.126e-05/0.3472, allocations: 12.94 kB / 0.5108 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3472, allocations: 1.188 kB / 0.5108 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3472, allocations: 4 kB / 0.5108 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.3472, allocations: 0 / 0.5108 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.3474, allocations: 199.7 kB / 0.511 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3474, allocations: 0.8438 kB / 0.511 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.513e-06/0.3474, allocations: 3.938 kB / 0.511 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3474, allocations: 1.125 kB / 0.511 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.3474, allocations: 12.53 kB / 0.511 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3474, allocations: 0.7969 kB / 0.511 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3474, allocations: 0 / 0.511 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006376/0.3481, allocations: 0.5048 MB / 0.5115 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.283e-05/0.3481, allocations: 84.97 kB / 0.5116 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.3481, allocations: 4.375 kB / 0.5116 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.837e-05/0.3482, allocations: 3.953 kB / 0.5116 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.547e-05/0.3482, allocations: 2.797 kB / 0.5116 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.3482, allocations: 8.812 kB / 0.5116 GB, free: 2.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.309e-05/0.3483, allocations: 104.2 kB / 0.5117 GB, free: 2.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3483, allocations: 0 / 0.5117 GB, free: 2.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000291/0.3486, allocations: 46.98 kB / 0.5118 GB, free: 2.906 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.0001918/0.3488, allocations: 121.1 kB / 0.5119 GB, free: 2.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006136/0.3494, allocations: 0.7136 MB / 0.5126 GB, free: 2.465 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3494, allocations: 0 / 0.5126 GB, free: 2.465 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004172/0.3498, allocations: 0.564 MB / 0.5131 GB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.3501, allocations: 25.08 kB / 0.5132 GB, free: 2.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006523/0.3508, allocations: 459.8 kB / 0.5136 GB, free: 1.926 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.3509, allocations: 0.724 MB / 0.5143 GB, free: 1.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.154e-05/0.3509, allocations: 8.719 kB / 0.5143 GB, free: 1.215 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.351, allocations: 0 / 0.5143 GB, free: 1.215 MB / 382.1 MB Notification: Performance of Templates: time 0.004409/0.3554, allocations: 1.726 MB / 0.516 GB, free: 1.078 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches