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.001043/0.001043, allocations: 109.2 kB / 17.74 MB, free: 5.332 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.001055/0.001055, allocations: 184.3 kB / 18.68 MB, free: 4.41 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.308/1.308, allocations: 222.9 MB / 242.4 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.1808/0.1808, allocations: 38.04 MB / 330.6 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 63.89 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3367, allocations: 58.06 MB / 0.5048 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003052/0.3398, allocations: 2.042 MB / 0.5068 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006556/0.3405, allocations: 0.5236 MB / 0.5073 GB, free: 5.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.132e-05/0.3405, allocations: 1.125 kB / 0.5073 GB, free: 5.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.3407, allocations: 13.81 kB / 0.5073 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.145e-05/0.3408, allocations: 25.67 kB / 0.5073 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.3411, allocations: 71.67 kB / 0.5074 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.3412, allocations: 58.77 kB / 0.5074 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.712e-05/0.3413, allocations: 7.484 kB / 0.5075 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.456e-05/0.3413, allocations: 28.84 kB / 0.5075 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.851e-05/0.3414, allocations: 28.78 kB / 0.5075 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.3414, allocations: 0.9375 kB / 0.5075 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.3416, allocations: 82.62 kB / 0.5076 GB, free: 5.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.734e-05/0.3417, allocations: 41.81 kB / 0.5076 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.811e-05/0.3417, allocations: 43.38 kB / 0.5077 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.342, allocations: 146.4 kB / 0.5078 GB, free: 5.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.342, allocations: 0.7969 kB / 0.5078 GB, free: 5.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.342, allocations: 5.125 kB / 0.5078 GB, free: 5.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.342, allocations: 0 / 0.5078 GB, free: 5.742 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.0004555/0.3425, allocations: 478.3 kB / 0.5083 GB, free: 5.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.3426, allocations: 13.25 kB / 0.5083 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/0.3426, allocations: 18.34 kB / 0.5083 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.3428, allocations: 198.1 kB / 0.5085 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.3428, allocations: 5 kB / 0.5085 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.3428, allocations: 1.125 kB / 0.5085 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.3431, allocations: 133.7 kB / 0.5086 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3431, allocations: 2.766 kB / 0.5086 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.3431, allocations: 1.188 kB / 0.5086 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3431, allocations: 0 / 0.5086 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.3432, allocations: 94.19 kB / 0.5087 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.3434, allocations: 204.6 kB / 0.5089 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.3436, allocations: 156.5 kB / 0.5091 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.3437, allocations: 138.8 kB / 0.5092 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.3438, allocations: 9.469 kB / 0.5092 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.483e-05/0.3438, allocations: 31.31 kB / 0.5092 GB, free: 4.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.3438, allocations: 0 / 0.5092 GB, free: 4.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006095/0.3444, allocations: 475.4 kB / 0.5097 GB, free: 4.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.3445, allocations: 108 kB / 0.5098 GB, free: 4.312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.3446, allocations: 149.2 kB / 0.5099 GB, free: 4.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.858e-06/0.3446, allocations: 26.92 kB / 0.51 GB, free: 4.164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.3447, allocations: 93.31 kB / 0.51 GB, free: 4.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.068e-05/0.3448, allocations: 139.1 kB / 0.5102 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.3448, allocations: 36.02 kB / 0.5102 GB, free: 3.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.285e-05/0.3449, allocations: 336.4 kB / 0.5105 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.345, allocations: 89.41 kB / 0.5106 GB, free: 3.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.436e-05/0.3451, allocations: 97.64 kB / 0.5107 GB, free: 3.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.3455, allocations: 364.3 kB / 0.5111 GB, free: 3.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3455, allocations: 0 / 0.5111 GB, free: 3.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003425/0.3458, allocations: 324.9 kB / 0.5114 GB, free: 3.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.793e-05/0.3459, allocations: 89.97 kB / 0.5115 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3459, allocations: 0 / 0.5115 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.3459, allocations: 0 / 0.5115 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.914e-06/0.3459, allocations: 1.812 kB / 0.5115 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.346, allocations: 0 / 0.5115 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.764e-05/0.346, allocations: 23.69 kB / 0.5115 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.346, allocations: 8.312 kB / 0.5115 GB, free: 3.258 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.0001848/0.3462, allocations: 231.7 kB / 0.5117 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.3463, allocations: 24.27 kB / 0.5117 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.3463, allocations: 18.78 kB / 0.5118 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3463, allocations: 5.297 kB / 0.5118 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3463, allocations: 1.188 kB / 0.5118 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-05/0.3464, allocations: 94.95 kB / 0.5118 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.3464, allocations: 6.047 kB / 0.5119 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.491e-05/0.3464, allocations: 10.16 kB / 0.5119 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.3465, allocations: 2.984 kB / 0.5119 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001308/0.3478, allocations: 1.306 MB / 0.5131 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001004/0.3488, allocations: 1.045 MB / 0.5142 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007101/0.3495, allocations: 0.981 MB / 0.5151 GB, free: 1.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.73e-05/0.3496, allocations: 116.4 kB / 0.5152 GB, free: 1.418 MB / 382.1 MB Notification: Performance of Backend: time 5.61e-07/0.3496, allocations: 0 / 0.5152 GB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.3511, allocations: 1.461 MB / 0.5167 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of SimCode: time 0.001469/0.3526, allocations: 1.177 MB / 0.5178 GB, free: 15.8 MB / 398.1 MB Notification: Performance of Templates: time 0.006154/0.3588, allocations: 2.721 MB / 0.5205 GB, free: 15.57 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/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