Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.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/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/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(PowerGrids.Functions.Test.TestTimeConstants,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1|T2|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants") translateModel(PowerGrids.Functions.Test.TestTimeConstants,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1|T2|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 199.2 kB / 16.8 MB, free: 6.828 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.557/1.557, allocations: 222.9 MB / 240.5 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2911/0.2911, allocations: 16.78 MB / 307.4 MB, free: 14.98 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.89 kB / 371.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4598/0.4611, allocations: 53.56 MB / 425.3 MB, free: 38.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.001883/0.463, allocations: 0.5352 MB / 425.8 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004164/0.4635, allocations: 124.3 kB / 425.9 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.507e-05/0.4635, allocations: 1.062 kB / 425.9 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.443e-05/0.4635, allocations: 0 / 425.9 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002733/0.4638, allocations: 22.11 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.594e-06/0.4638, allocations: 1.969 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.372e-05/0.4639, allocations: 6.875 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.985e-05/0.4639, allocations: 2.969 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.599e-05/0.4639, allocations: 0 / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.4641, allocations: 12.58 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.96e-06/0.4641, allocations: 3.219 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.007e-06/0.4641, allocations: 0 / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-06/0.4641, allocations: 0 / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.593e-05/0.4641, allocations: 3.984 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 2.941e-05/0.4642, allocations: 0 / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4642, allocations: 0 / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4642, allocations: 0 / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.4642, allocations: 0 / 426 MB, free: 38.8 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002787/0.4645, allocations: 319.4 kB / 426.3 MB, free: 38.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.4645, allocations: 8.938 kB / 426.3 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.312e-05/0.4646, allocations: 0.9375 kB / 426.3 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.065e-05/0.4646, allocations: 164.5 kB / 426.5 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.4647, allocations: 384 / 426.5 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.4647, allocations: 3.281 kB / 426.5 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/0.4648, allocations: 42.17 kB / 426.5 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.4648, allocations: 4.188 kB / 426.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.4648, allocations: 7.75 kB / 426.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.4648, allocations: 1.375 kB / 426.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.249e-05/0.4649, allocations: 2.906 kB / 426.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003015/0.4652, allocations: 463.6 kB / 427 MB, free: 37.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.05e-05/0.4652, allocations: 174.1 kB / 427.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.204e-05/0.4653, allocations: 80.14 kB / 427.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.4653, allocations: 82.81 kB / 427.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.4653, allocations: 112 kB / 427.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.81e-07/0.4653, allocations: 0.875 kB / 427.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.89e-05/0.4654, allocations: 26.33 kB / 427.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.4654, allocations: 130.7 kB / 427.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.101e-05/0.4655, allocations: 96.23 kB / 427.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.391e-06/0.4655, allocations: 25.7 kB / 427.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.358e-05/0.4656, allocations: 92.28 kB / 427.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.196e-06/0.4656, allocations: 0 / 427.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.479e-05/0.4656, allocations: 13.88 kB / 427.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.012e-05/0.4657, allocations: 314.3 kB / 428.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.4657, allocations: 3.812 kB / 428.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.149e-05/0.4657, allocations: 20.28 kB / 428.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.932e-05/0.4657, allocations: 12.59 kB / 428.1 MB, free: 36.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4657, allocations: 7.125 kB / 428.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001001/0.4659, allocations: 45.52 kB / 428.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.4659, allocations: 6.188 kB / 428.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4659, allocations: 4.125 kB / 428.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.4659, allocations: 0 / 428.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.847e-05/0.466, allocations: 6.188 kB / 428.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.466, allocations: 7.781 kB / 428.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.502e-05/0.466, allocations: 3.906 kB / 428.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.466, allocations: 6.594 kB / 428.2 MB, free: 36.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 6.533e-05/0.4661, allocations: 185.1 kB / 428.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.778e-05/0.4661, allocations: 111.6 kB / 428.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.4662, allocations: 111.3 kB / 428.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.23e-05/0.4662, allocations: 183.2 kB / 428.8 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-05/0.4662, allocations: 179.2 kB / 429 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.101e-05/0.4663, allocations: 178.1 kB / 429.1 MB, free: 35.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.4664, allocations: 410.7 kB / 429.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/0.4665, allocations: 105 kB / 429.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.019e-05/0.4665, allocations: 104.5 kB / 429.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.101e-05/0.4665, allocations: 179.1 kB / 429.9 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.4666, allocations: 182.4 kB / 430.1 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.198e-05/0.4666, allocations: 179.7 kB / 430.3 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.213e-05/0.4666, allocations: 182.3 kB / 430.5 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.085e-05/0.4667, allocations: 312.9 kB / 430.8 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.4668, allocations: 178.1 kB / 430.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/0.4668, allocations: 183 kB / 431.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.08e-05/0.4669, allocations: 108.4 kB / 431.2 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.4669, allocations: 183.8 kB / 431.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.467, allocations: 104 kB / 431.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.317e-05/0.467, allocations: 82.97 kB / 431.6 MB, free: 32.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.467, allocations: 2.688 kB / 431.6 MB, free: 32.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000201/0.4672, allocations: 0 / 431.6 MB, free: 32.96 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 7.933e-05/0.4673, allocations: 169.2 kB / 431.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.186e-05/0.4674, allocations: 17.11 kB / 431.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4674, allocations: 0 / 431.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.072e-06/0.4674, allocations: 0 / 431.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.4677, allocations: 0.5242 MB / 432.3 MB, free: 32.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001879/0.4679, allocations: 177.4 kB / 432.5 MB, free: 32.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001314/0.468, allocations: 0.6765 MB / 433.1 MB, free: 31.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.862e-05/0.468, allocations: 10.28 kB / 433.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.468, allocations: 0 / 433.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of Templates: time 0.001548/0.4696, allocations: 337.7 kB / 433.5 MB, free: 31.35 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.makefile (rm -f PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.pipe ; mkfifo PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.pipe >> ../files/PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.sim & ./PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Functions.Test.TestTimeConstants_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches