Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.00175, 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.002046/0.002045, 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.418/1.418, 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.175/0.175, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.89 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3177, allocations: 58.05 MB / 0.5048 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.002794/0.3206, allocations: 2.042 MB / 0.5068 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006233/0.3212, allocations: 0.524 MB / 0.5073 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.632e-05/0.3213, allocations: 1.094 kB / 0.5073 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.3214, allocations: 10.09 kB / 0.5073 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.3215, allocations: 26.47 kB / 0.5073 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.3218, allocations: 70.31 kB / 0.5074 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.3219, allocations: 63.84 kB / 0.5074 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.398e-05/0.322, allocations: 6.797 kB / 0.5074 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.053e-05/0.322, allocations: 25.77 kB / 0.5075 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.54e-05/0.3221, allocations: 32.38 kB / 0.5075 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.618e-06/0.3221, allocations: 1.125 kB / 0.5075 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.3223, allocations: 74.52 kB / 0.5076 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.156e-05/0.3223, allocations: 21.06 kB / 0.5076 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.3223, allocations: 21 kB / 0.5076 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.3225, allocations: 111.7 kB / 0.5077 GB, free: 5.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3225, allocations: 1.344 kB / 0.5077 GB, free: 5.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3225, allocations: 0 / 0.5077 GB, free: 5.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.3225, allocations: 0.7031 kB / 0.5077 GB, free: 5.836 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002803/0.3228, allocations: 397.6 kB / 0.5081 GB, free: 5.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.3229, allocations: 12.83 kB / 0.5081 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.547e-05/0.3229, allocations: 7.719 kB / 0.5081 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.323, allocations: 182.9 kB / 0.5083 GB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.325e-06/0.323, allocations: 384 / 0.5083 GB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.3231, allocations: 9.625 kB / 0.5083 GB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.3232, allocations: 62.67 kB / 0.5084 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.3232, allocations: 0 / 0.5084 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.3232, allocations: 0.5938 kB / 0.5084 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3232, allocations: 1.062 kB / 0.5084 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.508e-05/0.3233, allocations: 29.03 kB / 0.5084 GB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.653e-05/0.3234, allocations: 167.2 kB / 0.5086 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.257e-05/0.3234, allocations: 60.53 kB / 0.5086 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.624e-05/0.3235, allocations: 51.36 kB / 0.5087 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-06/0.3235, allocations: 3.938 kB / 0.5087 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.3235, allocations: 32.39 kB / 0.5087 GB, free: 4.855 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.3235, allocations: 0 / 0.5087 GB, free: 4.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002452/0.3238, allocations: 183.2 kB / 0.5089 GB, free: 4.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.3238, allocations: 86.67 kB / 0.509 GB, free: 4.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.233e-05/0.3239, allocations: 124 kB / 0.5091 GB, free: 4.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.165e-06/0.3239, allocations: 26.73 kB / 0.5091 GB, free: 4.539 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.359e-05/0.3239, allocations: 91.56 kB / 0.5092 GB, free: 4.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.725e-05/0.324, allocations: 36.16 kB / 0.5092 GB, free: 4.422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.324, allocations: 17.98 kB / 0.5092 GB, free: 4.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.541e-05/0.3241, allocations: 320.7 kB / 0.5095 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.122e-05/0.3241, allocations: 29.23 kB / 0.5096 GB, free: 4.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.394e-05/0.3241, allocations: 36.7 kB / 0.5096 GB, free: 4.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.3243, allocations: 156.2 kB / 0.5098 GB, free: 3.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3243, allocations: 0 / 0.5098 GB, free: 3.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001374/0.3244, allocations: 149.2 kB / 0.5099 GB, free: 3.906 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.065e-05/0.3245, allocations: 49.34 kB / 0.5099 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3245, allocations: 1.219 kB / 0.5099 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3245, allocations: 0 / 0.5099 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.883e-06/0.3245, allocations: 4.75 kB / 0.5099 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3245, allocations: 5.297 kB / 0.51 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.69e-05/0.3245, allocations: 10.06 kB / 0.51 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.3246, allocations: 4.172 kB / 0.51 GB, free: 3.855 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 8.685e-05/0.3247, allocations: 164.6 kB / 0.5101 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.3247, allocations: 21.05 kB / 0.5101 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.264e-05/0.3247, allocations: 7.375 kB / 0.5101 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3247, allocations: 0.75 kB / 0.5102 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3247, allocations: 1.156 kB / 0.5102 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.3247, allocations: 0 / 0.5102 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.631e-05/0.3248, allocations: 183.7 kB / 0.5103 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3248, allocations: 0.7031 kB / 0.5103 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-06/0.3248, allocations: 0.9688 kB / 0.5103 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3248, allocations: 0 / 0.5103 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.3248, allocations: 3.906 kB / 0.5103 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3248, allocations: 4 kB / 0.5103 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3248, allocations: 2.031 kB / 0.5103 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.3251, allocations: 274.5 kB / 0.5106 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.026e-05/0.3251, allocations: 88.16 kB / 0.5107 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.3252, allocations: 3.016 kB / 0.5107 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.9e-05/0.3252, allocations: 2.25 kB / 0.5107 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.542e-05/0.3252, allocations: 2.859 kB / 0.5107 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.3252, allocations: 2.969 kB / 0.5107 GB, free: 3.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.646e-05/0.3253, allocations: 97.75 kB / 0.5108 GB, free: 3.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3253, allocations: 5.156 kB / 0.5108 GB, free: 3.156 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.3255, allocations: 28.39 kB / 0.5108 GB, free: 3.156 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.0001367/0.3256, allocations: 112.2 kB / 0.5109 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002883/0.3259, allocations: 296.1 kB / 0.5112 GB, free: 2.926 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3259, allocations: 1.281 kB / 0.5112 GB, free: 2.926 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.3261, allocations: 218.6 kB / 0.5114 GB, free: 2.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.3263, allocations: 23.2 kB / 0.5114 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003924/0.3267, allocations: 303.7 kB / 0.5117 GB, free: 2.602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.3269, allocations: 0.6986 MB / 0.5124 GB, free: 1.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.638e-06/0.3269, allocations: 8.719 kB / 0.5124 GB, free: 1.898 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3269, allocations: 0 / 0.5124 GB, free: 1.898 MB / 382.1 MB Notification: Performance of Templates: time 0.002797/0.3297, allocations: 1.26 MB / 0.5137 GB, free: 1.809 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches