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.0009632/0.0009633, allocations: 87.38 kB / 16.64 MB, free: 6.535 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.001233/0.001233, allocations: 177 kB / 17.55 MB, free: 6.188 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.214/1.214, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1579/0.1579, allocations: 38.09 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002851/0.0002852, allocations: 8 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09636/0.09666, allocations: 59.17 MB / 459.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.002277/0.09898, allocations: 1.748 MB / 461.6 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006528/0.09966, allocations: 0.5299 MB / 462.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.264e-05/0.0997, allocations: 0 / 462.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.09983, allocations: 7.922 kB / 462.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.353e-05/0.09993, allocations: 27.89 kB / 462.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.1002, allocations: 63.86 kB / 462.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.1004, allocations: 115.7 kB / 462.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.197e-05/0.1004, allocations: 0 / 462.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.63e-05/0.1005, allocations: 27.84 kB / 462.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.529e-05/0.1006, allocations: 31.84 kB / 462.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.1006, allocations: 4 kB / 462.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.1007, allocations: 75.83 kB / 462.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.1008, allocations: 39.91 kB / 462.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.519e-05/0.1009, allocations: 69.25 kB / 462.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.1011, allocations: 155.7 kB / 462.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1011, allocations: 7.938 kB / 462.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1011, allocations: 0 / 462.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.1011, allocations: 0 / 462.8 MB, free: 4.164 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.0004266/0.1015, allocations: 472.6 kB / 463.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.1016, allocations: 12.03 kB / 463.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.1016, allocations: 16.69 kB / 463.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.1018, allocations: 198.6 kB / 463.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.1018, allocations: 3.938 kB / 463.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.1018, allocations: 0 / 463.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.102, allocations: 130.6 kB / 463.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.102, allocations: 0 / 463.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.102, allocations: 0 / 463.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.102, allocations: 0 / 463.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.435e-05/0.1021, allocations: 96.28 kB / 463.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001514/0.1023, allocations: 198 kB / 463.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.1024, allocations: 158.8 kB / 464 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.1025, allocations: 141.2 kB / 464.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.226e-06/0.1026, allocations: 4 kB / 464.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1026, allocations: 34.56 kB / 464.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.423e-06/0.1026, allocations: 0 / 464.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005386/0.1031, allocations: 468 kB / 464.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.1032, allocations: 113 kB / 464.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.1033, allocations: 146.4 kB / 464.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.1034, allocations: 29.64 kB / 464.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.733e-05/0.1034, allocations: 104.8 kB / 465.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.937e-05/0.1035, allocations: 133.9 kB / 465.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.1036, allocations: 25.7 kB / 465.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1037, allocations: 338.8 kB / 465.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.047e-05/0.1038, allocations: 91.97 kB / 465.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.528e-05/0.1038, allocations: 88.95 kB / 465.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.1041, allocations: 368.4 kB / 466.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1042, allocations: 0 / 466.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002956/0.1045, allocations: 323 kB / 466.4 MB, free: 288 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.126e-05/0.1045, allocations: 85.69 kB / 466.5 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1046, allocations: 4 kB / 466.5 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.1046, allocations: 0 / 466.5 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.497e-06/0.1046, allocations: 7.922 kB / 466.5 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.1046, allocations: 4 kB / 466.5 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.521e-05/0.1046, allocations: 19.75 kB / 466.5 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.1047, allocations: 4 kB / 466.5 MB, free: 156 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.0001902/0.1049, allocations: 235.4 kB / 466.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.707e-05/0.1049, allocations: 23.81 kB / 466.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.823e-05/0.1049, allocations: 21.91 kB / 466.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1049, allocations: 0 / 466.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1049, allocations: 0 / 466.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1049, allocations: 0 / 466.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.1051, allocations: 229.3 kB / 467 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1051, allocations: 4 kB / 467 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1051, allocations: 0 / 467 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1051, allocations: 0 / 467 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1051, allocations: 4 kB / 467 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1051, allocations: 0 / 467 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1051, allocations: 4 kB / 467 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008501/0.106, allocations: 0.9043 MB / 467.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.734e-05/0.1061, allocations: 104.7 kB / 468 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.1061, allocations: 7.938 kB / 468 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.365e-05/0.1061, allocations: 8 kB / 468 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.1062, allocations: 11.94 kB / 468.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.1062, allocations: 4 kB / 468.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.599e-05/0.1063, allocations: 118.4 kB / 468.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1063, allocations: 32 / 468.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002555/0.1065, allocations: 64 kB / 468.2 MB, free: 14.32 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.0001758/0.1067, allocations: 119.2 kB / 468.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.1079, allocations: 1.581 MB / 469.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1079, allocations: 0 / 469.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000929/0.1089, allocations: 1.362 MB / 471.3 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.0002543/0.1091, allocations: 27.92 kB / 471.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007998/0.11, allocations: 0.698 MB / 472 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1103, allocations: 0.752 MB / 472.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.925e-05/0.1103, allocations: 0 / 472.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.129e-05/0.1103, allocations: 7.438 kB / 472.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1103, allocations: 0 / 472.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of Templates: time 0.004766/0.1151, allocations: 2.37 MB / 475.2 MB, free: 7.336 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches