Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_PowerGrids.Functions.Test.TestTimeConstants") translateModel(PowerGrids.Functions.Test.TestTimeConstants,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1|T2|time",fileNamePrefix="PowerGrids_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.001115/0.001115, allocations: 105.5 kB / 16.41 MB, free: 6.48 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.001125/0.001124, allocations: 189.5 kB / 17.34 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06257/0.06257, allocations: 14.18 MB / 284.8 MB, free: 13.84 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 68.92 kB / 397.1 MB, free: 44.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0723/0.07381, allocations: 50.13 MB / 447.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.001577/0.07542, allocations: 484.8 kB / 447.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003303/0.07577, allocations: 123.6 kB / 447.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.555e-05/0.07581, allocations: 0 / 447.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.499e-05/0.07586, allocations: 0 / 447.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002716/0.07614, allocations: 23.91 kB / 447.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.657e-06/0.07615, allocations: 4 kB / 447.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 3.042e-05/0.07619, allocations: 0 / 447.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.07624, allocations: 352 / 447.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.663e-05/0.07626, allocations: 3.938 kB / 447.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.07636, allocations: 19.97 kB / 447.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-06/0.07638, allocations: 0 / 447.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.889e-06/0.07639, allocations: 0 / 447.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.342e-06/0.0764, allocations: 3.938 kB / 447.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.116e-05/0.07641, allocations: 0 / 447.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 3.224e-05/0.07645, allocations: 4 kB / 447.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.07646, allocations: 0 / 447.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.07646, allocations: 0 / 447.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.07647, allocations: 0 / 447.9 MB, free: 13.15 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002552/0.07673, allocations: 315.6 kB / 448.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.07678, allocations: 8.031 kB / 448.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.57e-05/0.07681, allocations: 4.875 kB / 448.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.154e-05/0.07691, allocations: 164.4 kB / 448.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.07692, allocations: 384 / 448.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-06/0.07694, allocations: 4.375 kB / 448.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.07705, allocations: 47.98 kB / 448.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.07706, allocations: 192 / 448.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.07708, allocations: 7.938 kB / 448.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.07709, allocations: 0 / 448.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.928e-05/0.07711, allocations: 3.938 kB / 448.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003352/0.07745, allocations: 467.7 kB / 448.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.751e-05/0.07754, allocations: 173 kB / 449.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.884e-05/0.07761, allocations: 84.14 kB / 449.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.07764, allocations: 75.28 kB / 449.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.07769, allocations: 113.8 kB / 449.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.07769, allocations: 0 / 449.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 7.742e-05/0.07777, allocations: 29.7 kB / 449.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.07783, allocations: 130.7 kB / 449.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.562e-05/0.07791, allocations: 93.86 kB / 449.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.07793, allocations: 29.7 kB / 449.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/0.07799, allocations: 88.05 kB / 449.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.555e-06/0.07799, allocations: 3.938 kB / 449.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.07803, allocations: 13.72 kB / 449.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.07813, allocations: 314.8 kB / 450 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.456e-06/0.07815, allocations: 0 / 450 MB, free: 10.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.562e-05/0.07817, allocations: 17.84 kB / 450.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.793e-05/0.0782, allocations: 13.72 kB / 450.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.07821, allocations: 7.938 kB / 450.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.087e-05/0.07831, allocations: 37.64 kB / 450.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.07833, allocations: 4 kB / 450.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.07834, allocations: 0 / 450.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.07836, allocations: 8.109 kB / 450.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.877e-05/0.07841, allocations: 4 kB / 450.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.07842, allocations: 0 / 450.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.07844, allocations: 4 kB / 450.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.07845, allocations: 4 kB / 450.1 MB, free: 10.68 MB / 334.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 9.493e-05/0.07855, allocations: 189 kB / 450.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.07861, allocations: 112.9 kB / 450.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.745e-05/0.07866, allocations: 108.1 kB / 450.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-05/0.07873, allocations: 188.2 kB / 450.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.083e-05/0.07879, allocations: 176.3 kB / 450.9 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.067e-05/0.07885, allocations: 184.3 kB / 451.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/0.07907, allocations: 405.1 kB / 451.5 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.932e-05/0.0791, allocations: 101 kB / 451.6 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.096e-05/0.07915, allocations: 116.9 kB / 451.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-05/0.07922, allocations: 180.3 kB / 451.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.939e-05/0.07927, allocations: 176.3 kB / 452 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.555e-05/0.07933, allocations: 184.2 kB / 452.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.89e-05/0.07939, allocations: 184.2 kB / 452.4 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.07952, allocations: 307.7 kB / 452.7 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.713e-05/0.07959, allocations: 186 kB / 452.9 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.767e-05/0.07966, allocations: 184.5 kB / 453.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.555e-05/0.07973, allocations: 101 kB / 453.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.282e-05/0.0798, allocations: 188.2 kB / 453.3 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.07985, allocations: 105 kB / 453.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.026e-05/0.07988, allocations: 79.28 kB / 453.5 MB, free: 7.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.07989, allocations: 3.938 kB / 453.5 MB, free: 7.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000214/0.08011, allocations: 4 kB / 453.5 MB, free: 7.066 MB / 334.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 9.585e-05/0.08021, allocations: 166.5 kB / 453.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 5.997e-05/0.08027, allocations: 7.938 kB / 453.7 MB, free: 6.883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.08028, allocations: 4.219 kB / 453.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.242e-06/0.08029, allocations: 0 / 453.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.08063, allocations: 464.6 kB / 454.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001811/0.08082, allocations: 177.9 kB / 454.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.08104, allocations: 0.6768 MB / 455 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.602e-05/0.08106, allocations: 7.438 kB / 455 MB, free: 5.504 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08107, allocations: 4 kB / 455 MB, free: 5.5 MB / 334.1 MB Notification: Performance of Templates: time 0.001291/0.08236, allocations: 339.8 kB / 455.3 MB, free: 5.168 MB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.makefile (rm -f PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe ; mkfifo PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe >> ../files/PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.sim & ./PowerGrids_PowerGrids.Functions.Test.TestTimeConstants -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Functions.Test.TestTimeConstants.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches