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.008878/0.008878, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001768/0.001768, allocations: 191.5 kB / 16.67 MB, free: 5.523 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07641/0.07641, allocations: 16.79 MB / 307.3 MB, free: 14.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001188, allocations: 63.89 kB / 426.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1161, allocations: 53.55 MB / 480.1 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.001762/0.1179, allocations: 477.1 kB / 480.6 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003782/0.1183, allocations: 123.5 kB / 480.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.541e-05/0.1184, allocations: 7.875 kB / 480.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.1184, allocations: 0 / 480.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.1187, allocations: 19.92 kB / 480.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.186e-06/0.1187, allocations: 0 / 480.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.009e-05/0.1188, allocations: 4 kB / 480.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.72e-05/0.1188, allocations: 4.344 kB / 480.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.275e-05/0.1188, allocations: 0 / 480.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.119, allocations: 15.97 kB / 480.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.588e-06/0.119, allocations: 0 / 480.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.096e-06/0.119, allocations: 0 / 480.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.265e-06/0.119, allocations: 0 / 480.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.295e-05/0.119, allocations: 4 kB / 480.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.044e-05/0.119, allocations: 7.938 kB / 480.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1191, allocations: 0 / 480.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1191, allocations: 4 kB / 480.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1191, allocations: 3.938 kB / 480.8 MB, free: 4.371 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.0003046/0.1194, allocations: 303.6 kB / 481.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1194, allocations: 12.06 kB / 481.1 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.1195, allocations: 4.922 kB / 481.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.1196, allocations: 160.4 kB / 481.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.1196, allocations: 4.375 kB / 481.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-06/0.1196, allocations: 4.375 kB / 481.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.1197, allocations: 43.98 kB / 481.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.1197, allocations: 192 / 481.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.1197, allocations: 7.938 kB / 481.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.1197, allocations: 0 / 481.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.879e-05/0.1198, allocations: 3.938 kB / 481.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.1201, allocations: 467.7 kB / 481.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.93e-05/0.1202, allocations: 173.1 kB / 481.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/0.1202, allocations: 84.08 kB / 482 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.1203, allocations: 75.28 kB / 482.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.1203, allocations: 113.8 kB / 482.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 7.81e-07/0.1203, allocations: 0 / 482.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.221e-05/0.1204, allocations: 25.7 kB / 482.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.1205, allocations: 126.7 kB / 482.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.1205, allocations: 97.86 kB / 482.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.1206, allocations: 25.7 kB / 482.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.244e-05/0.1206, allocations: 95.97 kB / 482.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.795e-06/0.1206, allocations: 4.125 kB / 482.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.1207, allocations: 13.7 kB / 482.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1208, allocations: 314.8 kB / 482.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.549e-05/0.1208, allocations: 11.94 kB / 482.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.363e-05/0.1208, allocations: 17.59 kB / 482.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.454e-05/0.1209, allocations: 17.78 kB / 482.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1209, allocations: 3.938 kB / 482.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001068/0.121, allocations: 45.62 kB / 483 MB, free: 1.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.121, allocations: 8 kB / 483 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.121, allocations: 0 / 483 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.1211, allocations: 0 / 483 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.76e-05/0.1211, allocations: 4 kB / 483 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1211, allocations: 0 / 483 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.491e-05/0.1211, allocations: 0 / 483 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.1212, allocations: 4 kB / 483 MB, free: 1.895 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 9.787e-05/0.1213, allocations: 189.1 kB / 483.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.847e-05/0.1214, allocations: 108.9 kB / 483.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.1214, allocations: 116.1 kB / 483.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.893e-05/0.1215, allocations: 176.3 kB / 483.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.874e-05/0.1215, allocations: 180.2 kB / 483.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.221e-05/0.1216, allocations: 180.3 kB / 483.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.1218, allocations: 413.1 kB / 484.3 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.443e-05/0.1219, allocations: 101 kB / 484.4 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.869e-05/0.1219, allocations: 101 kB / 484.5 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.836e-05/0.122, allocations: 184.2 kB / 484.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.04e-05/0.122, allocations: 176.3 kB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.369e-05/0.1221, allocations: 192.2 kB / 485 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-05/0.1222, allocations: 180.3 kB / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.1223, allocations: 307.6 kB / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/0.1224, allocations: 182.1 kB / 485.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.376e-05/0.1225, allocations: 192.5 kB / 485.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.382e-05/0.1226, allocations: 101 kB / 486 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.849e-05/0.1226, allocations: 184.2 kB / 486.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/0.1227, allocations: 105 kB / 486.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.389e-05/0.1227, allocations: 79.27 kB / 486.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1227, allocations: 0 / 486.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.123, allocations: 96 / 486.4 MB, free: 14.3 MB / 366.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 0.000195/0.1232, allocations: 170.5 kB / 486.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.132e-05/0.1233, allocations: 11.94 kB / 486.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1233, allocations: 0 / 486.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.413e-06/0.1233, allocations: 3.938 kB / 486.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.1237, allocations: 467.7 kB / 487 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001936/0.1239, allocations: 152.2 kB / 487.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.1242, allocations: 0.6768 MB / 487.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.81e-05/0.1242, allocations: 3.938 kB / 487.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.766e-05/0.1242, allocations: 7.438 kB / 487.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1242, allocations: 0 / 487.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of Templates: time 0.001825/0.1261, allocations: 173.2 kB / 488 MB, free: 12.58 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Functions.Test.TestTimeConstants_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches