Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids.Functions.Test.TestTimeConstants") translateModel(PowerGrids.Functions.Test.TestTimeConstants,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1|T2|time",fileNamePrefix="PowerGrids_symb_jac_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.0008781/0.0008782, allocations: 92.95 kB / 16.03 MB, free: 76 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.001039/0.001039, allocations: 183.5 kB / 16.92 MB, free: 6.922 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.599/1.599, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05964/0.05964, allocations: 14.15 MB / 285.6 MB, free: 7.039 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.0004986/0.0004986, allocations: 15.98 kB / 347.4 MB, free: 19.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.09609, allocations: 51.12 MB / 398.5 MB, free: 400 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.0006688/0.09681, allocations: 225 kB / 398.7 MB, free: 180 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003986/0.09723, allocations: 119.6 kB / 398.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.157e-05/0.09725, allocations: 0 / 398.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.077e-05/0.09728, allocations: 0 / 398.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.09751, allocations: 11.98 kB / 398.9 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.665e-06/0.09752, allocations: 0 / 398.9 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 2.858e-05/0.09756, allocations: 7.984 kB / 398.9 MB, free: 40 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.616e-05/0.09762, allocations: 4 kB / 398.9 MB, free: 36 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.202e-05/0.09764, allocations: 0 / 398.9 MB, free: 36 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.09776, allocations: 8 kB / 398.9 MB, free: 28 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.067e-06/0.09778, allocations: 3.938 kB / 398.9 MB, free: 24 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.577e-06/0.09779, allocations: 0 / 398.9 MB, free: 24 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-06/0.0978, allocations: 0 / 398.9 MB, free: 24 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.803e-05/0.09786, allocations: 33.62 kB / 398.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 2.541e-05/0.09789, allocations: 0 / 398.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.0979, allocations: 0 / 398.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09792, allocations: 4 kB / 398.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.09793, allocations: 4 kB / 398.9 MB, free: 15.98 MB / 302.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.0002756/0.09821, allocations: 311.5 kB / 399.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.09826, allocations: 8.094 kB / 399.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.196e-05/0.0983, allocations: 8.938 kB / 399.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.09842, allocations: 160.4 kB / 399.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.09845, allocations: 384 / 399.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-06/0.09846, allocations: 384 / 399.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.09858, allocations: 51.97 kB / 399.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.0986, allocations: 4.172 kB / 399.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.09862, allocations: 7.875 kB / 399.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.09864, allocations: 0 / 399.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.104e-05/0.09866, allocations: 7.938 kB / 399.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.09906, allocations: 463.7 kB / 399.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.522e-05/0.09917, allocations: 177 kB / 400.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.918e-05/0.09923, allocations: 80.14 kB / 400.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.09927, allocations: 75.28 kB / 400.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.129e-05/0.09933, allocations: 109.9 kB / 400.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.303e-06/0.09934, allocations: 0 / 400.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.911e-05/0.09943, allocations: 29.7 kB / 400.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.662e-05/0.09952, allocations: 130.7 kB / 400.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.491e-05/0.09963, allocations: 97.77 kB / 400.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.09965, allocations: 29.64 kB / 400.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.654e-05/0.09971, allocations: 92.28 kB / 400.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.645e-06/0.09972, allocations: 0 / 400.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.09976, allocations: 9.719 kB / 400.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.09991, allocations: 319 kB / 401.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/0.09993, allocations: 4 kB / 401.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.343e-05/0.09996, allocations: 9.719 kB / 401.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.318e-05/0.1, allocations: 13.72 kB / 401.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1, allocations: 3.938 kB / 401.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001218/0.1001, allocations: 53.53 kB / 401.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1002, allocations: 8.125 kB / 401.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.1002, allocations: 0 / 401.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1002, allocations: 0 / 401.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.135e-05/0.1003, allocations: 4 kB / 401.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.1003, allocations: 0 / 401.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.1003, allocations: 0 / 401.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-06/0.1003, allocations: 4 kB / 401.2 MB, free: 13.5 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.1004, allocations: 189 kB / 401.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.1005, allocations: 116.9 kB / 401.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.926e-05/0.1006, allocations: 108.1 kB / 401.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.611e-05/0.1007, allocations: 180.2 kB / 401.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-05/0.1007, allocations: 176.3 kB / 401.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-05/0.1008, allocations: 176.3 kB / 402.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002931/0.1011, allocations: 413.1 kB / 402.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.943e-05/0.1012, allocations: 105 kB / 402.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-05/0.1012, allocations: 104.9 kB / 402.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.758e-05/0.1013, allocations: 184.2 kB / 402.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/0.1014, allocations: 176.3 kB / 403 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.635e-05/0.1015, allocations: 184.2 kB / 403.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-05/0.1016, allocations: 184.3 kB / 403.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004353/0.102, allocations: 0.8494 MB / 404.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.643e-05/0.1021, allocations: 178.1 kB / 404.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-05/0.1022, allocations: 184.2 kB / 404.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.1023, allocations: 108.9 kB / 404.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.033e-05/0.1024, allocations: 180.2 kB / 404.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.194e-05/0.1025, allocations: 104.9 kB / 405 MB, free: 9.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.261e-05/0.1025, allocations: 83.28 kB / 405.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1025, allocations: 3.938 kB / 405.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005543/0.1031, allocations: 0 / 405.1 MB, free: 9.312 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 (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.0001393/0.1032, allocations: 178.5 kB / 405.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.36e-05/0.1033, allocations: 4 kB / 405.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1033, allocations: 0 / 405.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.707e-06/0.1033, allocations: 0 / 405.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005286/0.1039, allocations: 0.5224 MB / 405.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002114/0.1041, allocations: 154.2 kB / 405.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.1044, allocations: 0.6731 MB / 406.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.847e-05/0.1044, allocations: 0 / 406.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.772e-05/0.1045, allocations: 7.438 kB / 406.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1045, allocations: 0 / 406.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of Templates: time 0.002167/0.1066, allocations: 169.1 kB / 406.8 MB, free: 7.547 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants.sim & ./PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Functions.Test.TestTimeConstants_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Functions.Test.TestTimeConstants.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches