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.001346/0.001346, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001286/0.001286, allocations: 192 kB / 18.63 MB, free: 4.508 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.32/1.32, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.03 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 67.14 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09701, allocations: 58.06 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.00309/0.1001, allocations: 2.032 MB / 460.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006759/0.1008, allocations: 0.5259 MB / 460.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.722e-05/0.1009, allocations: 3.938 kB / 460.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.101, allocations: 15.92 kB / 460.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.329e-05/0.1011, allocations: 23.89 kB / 460.9 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002902/0.1014, allocations: 71.77 kB / 461 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.1015, allocations: 51.83 kB / 461 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.983e-05/0.1015, allocations: 4 kB / 461.1 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.01e-05/0.1016, allocations: 39.84 kB / 461.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.833e-05/0.1017, allocations: 27.84 kB / 461.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.1017, allocations: 4 kB / 461.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.1019, allocations: 75.78 kB / 461.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.507e-05/0.1019, allocations: 43.91 kB / 461.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.797e-05/0.102, allocations: 39.56 kB / 461.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.1021, allocations: 159.3 kB / 461.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1022, allocations: 0 / 461.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1022, allocations: 0 / 461.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1022, allocations: 3.984 kB / 461.4 MB, free: 4.207 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.000408/0.1026, allocations: 484.5 kB / 461.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.1026, allocations: 15.89 kB / 461.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.801e-05/0.1027, allocations: 16.75 kB / 461.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.1028, allocations: 201.7 kB / 462.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.1029, allocations: 7.922 kB / 462.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.714e-06/0.1029, allocations: 0 / 462.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.103, allocations: 126.6 kB / 462.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-06/0.103, allocations: 0 / 462.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.103, allocations: 0 / 462.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.1031, allocations: 4 kB / 462.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.412e-05/0.1031, allocations: 96.3 kB / 462.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.1033, allocations: 202 kB / 462.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.1034, allocations: 150.8 kB / 462.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1036, allocations: 141.2 kB / 462.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-06/0.1036, allocations: 0 / 462.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.1036, allocations: 34.56 kB / 462.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 9.01e-07/0.1036, allocations: 4 kB / 462.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0004991/0.1041, allocations: 475.9 kB / 463.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.1042, allocations: 109.1 kB / 463.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.1043, allocations: 148.7 kB / 463.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.1043, allocations: 29.69 kB / 463.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.1044, allocations: 96.73 kB / 463.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.8e-05/0.1045, allocations: 133.9 kB / 463.9 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.527e-05/0.1045, allocations: 33.7 kB / 463.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.1046, allocations: 342.8 kB / 464.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.308e-05/0.1047, allocations: 87.97 kB / 464.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.929e-05/0.1048, allocations: 92.95 kB / 464.4 MB, free: 1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.1051, allocations: 368.4 kB / 464.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1051, allocations: 0 / 464.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002917/0.1054, allocations: 326.9 kB / 465.1 MB, free: 300 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.048e-05/0.1055, allocations: 85.62 kB / 465.2 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1055, allocations: 0 / 465.2 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.1055, allocations: 0 / 465.2 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1055, allocations: 0 / 465.2 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.968e-06/0.1055, allocations: 4.062 kB / 465.2 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.479e-05/0.1055, allocations: 23.69 kB / 465.2 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.1056, allocations: 8 kB / 465.2 MB, free: 172 kB / 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.0001829/0.1058, allocations: 235.4 kB / 465.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.1058, allocations: 19.81 kB / 465.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.33e-05/0.1058, allocations: 9.969 kB / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1058, allocations: 0 / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1058, allocations: 0 / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1058, allocations: 3.984 kB / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.106, allocations: 229.3 kB / 465.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.106, allocations: 3.984 kB / 465.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.106, allocations: 0 / 465.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.106, allocations: 4 kB / 465.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.106, allocations: 8 kB / 465.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.106, allocations: 0 / 465.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.106, allocations: 4 kB / 465.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000834/0.1069, allocations: 0.9003 MB / 466.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.1069, allocations: 108.7 kB / 466.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.107, allocations: 4 kB / 466.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.49e-05/0.107, allocations: 8 kB / 466.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.107, allocations: 4 kB / 466.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.1071, allocations: 8 kB / 466.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.851e-05/0.1071, allocations: 118 kB / 466.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1072, allocations: 3.938 kB / 466.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002501/0.1074, allocations: 60 kB / 466.9 MB, free: 14.35 MB / 350.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.0001546/0.1076, allocations: 123.2 kB / 467 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.1088, allocations: 1.585 MB / 468.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1088, allocations: 0 / 468.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00091/0.1097, allocations: 1.374 MB / 470 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.1099, allocations: 23.94 kB / 470 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007623/0.1107, allocations: 0.6102 MB / 470.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.111, allocations: 0.7478 MB / 471.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.934e-05/0.111, allocations: 4.234 kB / 471.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.072e-05/0.111, allocations: 7.438 kB / 471.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.111, allocations: 0 / 471.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of Templates: time 0.005175/0.1162, allocations: 2.66 MB / 474 MB, free: 7.148 MB / 350.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 -s gbode -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