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.006778/0.006778, allocations: 97.22 kB / 15.73 MB, free: 6.055 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.001387/0.001388, allocations: 194.8 kB / 16.67 MB, free: 5.977 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1876/0.1876, allocations: 16.78 MB / 307.3 MB, free: 14.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 66.75 kB / 426.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1065, allocations: 53.57 MB / 480.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.00148/0.108, allocations: 477.7 kB / 480.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003198/0.1084, allocations: 119.1 kB / 480.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.626e-05/0.1084, allocations: 8.781 kB / 480.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.805e-05/0.1084, allocations: 0 / 480.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.1087, allocations: 31.66 kB / 480.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.276e-06/0.1087, allocations: 0 / 480.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.452e-05/0.1088, allocations: 1.188 kB / 480.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.069e-05/0.1088, allocations: 1.125 kB / 480.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.538e-05/0.1089, allocations: 1.031 kB / 480.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.109, allocations: 11.02 kB / 480.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.258e-06/0.109, allocations: 0 / 480.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.066e-06/0.109, allocations: 0 / 480.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.109, allocations: 0 / 480.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.266e-05/0.109, allocations: 1.219 kB / 480.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.855e-05/0.1091, allocations: 7.938 kB / 480.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1091, allocations: 9.047 kB / 480.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1091, allocations: 0 / 480.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1091, allocations: 0 / 480.8 MB, free: 9.977 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.0002178/0.1093, allocations: 307.1 kB / 481.1 MB, free: 9.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1094, allocations: 9.781 kB / 481.1 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.524e-05/0.1094, allocations: 6.203 kB / 481.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.917e-05/0.1095, allocations: 164.3 kB / 481.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.1095, allocations: 5.656 kB / 481.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-06/0.1095, allocations: 12.34 kB / 481.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.437e-05/0.1096, allocations: 44.2 kB / 481.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.1096, allocations: 192 / 481.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.1096, allocations: 3.938 kB / 481.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1096, allocations: 1.156 kB / 481.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.001e-05/0.1096, allocations: 6.406 kB / 481.3 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002243/0.1099, allocations: 471.7 kB / 481.8 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.667e-05/0.1099, allocations: 174.3 kB / 481.9 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.857e-05/0.11, allocations: 80.14 kB / 482 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.182e-05/0.11, allocations: 75.28 kB / 482.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.11, allocations: 115 kB / 482.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.11, allocations: 0 / 482.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.742e-05/0.1101, allocations: 26.89 kB / 482.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.1101, allocations: 127.9 kB / 482.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.605e-05/0.1102, allocations: 100.2 kB / 482.5 MB, free: 8.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.732e-06/0.1102, allocations: 25.7 kB / 482.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.313e-05/0.1102, allocations: 85.31 kB / 482.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.667e-06/0.1102, allocations: 1.344 kB / 482.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.1102, allocations: 16.12 kB / 482.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.1103, allocations: 310.8 kB / 482.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-06/0.1103, allocations: 1.094 kB / 482.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.878e-06/0.1103, allocations: 24.89 kB / 482.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.494e-05/0.1103, allocations: 16.28 kB / 482.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1103, allocations: 9.406 kB / 482.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.7e-05/0.1104, allocations: 41.58 kB / 483 MB, free: 7.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.1105, allocations: 4.594 kB / 483 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.1105, allocations: 1.156 kB / 483 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.1105, allocations: 1.312 kB / 483 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.988e-05/0.1105, allocations: 6.109 kB / 483 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1106, allocations: 1.125 kB / 483 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.1106, allocations: 1.031 kB / 483 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-06/0.1106, allocations: 1.094 kB / 483 MB, free: 7.562 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 4.907e-05/0.1106, allocations: 191.4 kB / 483.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.1107, allocations: 106.2 kB / 483.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.134e-05/0.1107, allocations: 108 kB / 483.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/0.1107, allocations: 183.3 kB / 483.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.768e-05/0.1108, allocations: 185.4 kB / 483.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/0.1108, allocations: 181.6 kB / 483.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.1109, allocations: 399.4 kB / 484.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.111, allocations: 112.9 kB / 484.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.258e-05/0.111, allocations: 105.9 kB / 484.5 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.547e-05/0.111, allocations: 181.1 kB / 484.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.229e-05/0.111, allocations: 177.6 kB / 484.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.838e-05/0.1111, allocations: 181.7 kB / 485.1 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.964e-05/0.1111, allocations: 185.5 kB / 485.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.172e-05/0.1112, allocations: 311.2 kB / 485.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.609e-05/0.1112, allocations: 183.1 kB / 485.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.511e-05/0.1113, allocations: 185.4 kB / 485.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.481e-05/0.1113, allocations: 106 kB / 486 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.1114, allocations: 180.6 kB / 486.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.1114, allocations: 106.1 kB / 486.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.112e-05/0.1114, allocations: 77.56 kB / 486.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1114, allocations: 0 / 486.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.1117, allocations: 1.25 kB / 486.4 MB, free: 3.992 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.588e-05/0.1117, allocations: 170.4 kB / 486.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.327e-05/0.1118, allocations: 7.516 kB / 486.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1118, allocations: 0 / 486.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.966e-06/0.1118, allocations: 9.125 kB / 486.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.1121, allocations: 471.4 kB / 487 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001821/0.1123, allocations: 145.8 kB / 487.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001253/0.1124, allocations: 0.6701 MB / 487.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.104e-05/0.1125, allocations: 5.109 kB / 487.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.967e-05/0.1125, allocations: 7.438 kB / 487.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1125, allocations: 0 / 487.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of Templates: time 0.001884/0.1144, allocations: 173.6 kB / 488 MB, free: 2.387 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/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