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.001192/0.001192, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001699/0.0017, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06023/0.06023, allocations: 14.16 MB / 284.5 MB, free: 7.367 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.0004579/0.0004579, allocations: 16 kB / 346.1 MB, free: 19.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09628, allocations: 51.12 MB / 397.3 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.0005451/0.09686, allocations: 210.1 kB / 397.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002827/0.09716, allocations: 106.1 kB / 397.6 MB, free: 476 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.781e-05/0.09719, allocations: 0 / 397.6 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.638e-06/0.09721, allocations: 0 / 397.6 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.09743, allocations: 19.61 kB / 397.6 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.126e-06/0.09744, allocations: 0 / 397.6 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 3.226e-05/0.09748, allocations: 4 kB / 397.6 MB, free: 456 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.54e-05/0.09753, allocations: 4 kB / 397.6 MB, free: 452 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.638e-06/0.09754, allocations: 3.938 kB / 397.6 MB, free: 448 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.76e-05/0.09765, allocations: 15.92 kB / 397.6 MB, free: 432 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.373e-06/0.09766, allocations: 3.984 kB / 397.6 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.815e-06/0.09767, allocations: 0 / 397.6 MB, free: 428 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.649e-06/0.09768, allocations: 0 / 397.6 MB, free: 428 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 1.628e-05/0.0977, allocations: 25.7 kB / 397.6 MB, free: 396 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 1.804e-05/0.09773, allocations: 0 / 397.6 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.09774, allocations: 0 / 397.6 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.09775, allocations: 4 kB / 397.6 MB, free: 392 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.09775, allocations: 0 / 397.6 MB, free: 392 kB / 286.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.0002666/0.09803, allocations: 311.4 kB / 398 MB, free: 32 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.09807, allocations: 12.02 kB / 398 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.443e-05/0.0981, allocations: 3.984 kB / 398 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.09821, allocations: 159.1 kB / 398.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.09823, allocations: 7.938 kB / 398.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.09825, allocations: 3.938 kB / 398.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.09836, allocations: 55.36 kB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.09838, allocations: 0 / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.09839, allocations: 0 / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.0984, allocations: 0 / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.265e-05/0.09842, allocations: 4 kB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003111/0.09874, allocations: 471.6 kB / 398.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.879e-05/0.09882, allocations: 169.1 kB / 398.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.684e-05/0.09886, allocations: 80.14 kB / 398.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.09889, allocations: 75.28 kB / 399 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.09894, allocations: 113.8 kB / 399.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 2.344e-06/0.09895, allocations: 0 / 399.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.23e-05/0.09902, allocations: 37.64 kB / 399.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.09907, allocations: 126.7 kB / 399.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.202e-05/0.09915, allocations: 97.77 kB / 399.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/0.09916, allocations: 25.7 kB / 399.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.09921, allocations: 88.36 kB / 399.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-06/0.09921, allocations: 0 / 399.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-06/0.09922, allocations: 0 / 399.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.605e-05/0.09932, allocations: 315 kB / 399.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-06/0.09934, allocations: 8 kB / 399.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.102e-05/0.09935, allocations: 9.719 kB / 399.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.763e-05/0.09937, allocations: 4 kB / 399.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.09938, allocations: 3.953 kB / 399.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.245e-05/0.09948, allocations: 45.55 kB / 399.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.0995, allocations: 4 kB / 399.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.09951, allocations: 4.125 kB / 399.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.09953, allocations: 7.984 kB / 399.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.454e-05/0.09958, allocations: 3.938 kB / 399.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.09959, allocations: 3.984 kB / 399.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.248e-05/0.09961, allocations: 4 kB / 399.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.09962, allocations: 0 / 399.9 MB, free: 13.94 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.882e-05/0.0997, allocations: 185.1 kB / 400 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.09976, allocations: 112.9 kB / 400.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.09981, allocations: 108.1 kB / 400.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.036e-05/0.09989, allocations: 188.1 kB / 400.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-05/0.09994, allocations: 180.3 kB / 400.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.963e-05/0.1, allocations: 180.2 kB / 400.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.1002, allocations: 401.2 kB / 401.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-05/0.1003, allocations: 109 kB / 401.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-05/0.1003, allocations: 112.9 kB / 401.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.368e-05/0.1004, allocations: 176.3 kB / 401.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.599e-05/0.1005, allocations: 180.2 kB / 401.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.714e-05/0.1005, allocations: 176.3 kB / 401.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.607e-05/0.1006, allocations: 192.3 kB / 402.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.1008, allocations: 304 kB / 402.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.178e-05/0.1009, allocations: 182 kB / 402.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-05/0.101, allocations: 192.2 kB / 402.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.365e-05/0.101, allocations: 101 kB / 402.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/0.1011, allocations: 188.2 kB / 403 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.1012, allocations: 101 kB / 403.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.3e-05/0.1012, allocations: 75.28 kB / 403.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1012, allocations: 0 / 403.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002226/0.1014, allocations: 4 kB / 403.2 MB, free: 10.34 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001502/0.1016, allocations: 166.5 kB / 403.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.78e-05/0.1017, allocations: 16.03 kB / 403.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1017, allocations: 0 / 403.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.273e-06/0.1017, allocations: 0 / 403.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.1022, allocations: 0.5185 MB / 403.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.1025, allocations: 146 kB / 404.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.1029, allocations: 0.6772 MB / 404.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.397e-05/0.1029, allocations: 7.875 kB / 404.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.1029, allocations: 11.44 kB / 404.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1029, allocations: 0 / 404.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of Templates: time 0.002075/0.105, allocations: 164.4 kB / 404.9 MB, free: 8.574 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Functions.Test.TestTimeConstants_res.mat","../files/PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches