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.001784/0.001784, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002312/0.002312, allocations: 188.8 kB / 16.25 MB, free: 6.629 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.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2016/0.2016, allocations: 16.78 MB / 306.9 MB, free: 14.89 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001533, allocations: 63.91 kB / 371.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3084, allocations: 53.55 MB / 424.8 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.001494/0.3099, allocations: 0.5374 MB / 425.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000263/0.3102, allocations: 112.1 kB / 425.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.057e-05/0.3102, allocations: 3.938 kB / 425.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.3102, allocations: 2.188 kB / 425.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.3105, allocations: 26.8 kB / 425.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.547e-06/0.3105, allocations: 0 / 425.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.705e-05/0.3105, allocations: 0 / 425.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.77e-05/0.3105, allocations: 3.031 kB / 425.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.242e-05/0.3106, allocations: 3.984 kB / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.911e-05/0.3107, allocations: 17.66 kB / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.988e-06/0.3107, allocations: 0 / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.627e-06/0.3107, allocations: 0 / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.152e-06/0.3107, allocations: 2.656 kB / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.213e-05/0.3107, allocations: 0 / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.01e-05/0.3107, allocations: 7.609 kB / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3108, allocations: 3.719 kB / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3108, allocations: 0 / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.3108, allocations: 0 / 425.5 MB, free: 38.93 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.000173/0.3109, allocations: 309.8 kB / 425.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.311, allocations: 12.69 kB / 425.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.273e-05/0.311, allocations: 0.9375 kB / 425.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.794e-05/0.3111, allocations: 166.9 kB / 426 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.263e-06/0.3111, allocations: 384 / 426 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.3111, allocations: 384 / 426 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.806e-05/0.3112, allocations: 46.81 kB / 426.1 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.3112, allocations: 192 / 426.1 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.3112, allocations: 8.078 kB / 426.1 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3112, allocations: 0 / 426.1 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.738e-05/0.3112, allocations: 8.344 kB / 426.1 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002008/0.3114, allocations: 461.1 kB / 426.5 MB, free: 37.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.172e-05/0.3115, allocations: 176.5 kB / 426.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.499e-05/0.3115, allocations: 80.14 kB / 426.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.3115, allocations: 75.28 kB / 426.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.3116, allocations: 112.3 kB / 427 MB, free: 37.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.3116, allocations: 0 / 427 MB, free: 37.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.418e-05/0.3116, allocations: 33.66 kB / 427 MB, free: 37.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.931e-05/0.3116, allocations: 130 kB / 427.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.634e-05/0.3117, allocations: 92.52 kB / 427.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.23e-06/0.3117, allocations: 31.98 kB / 427.2 MB, free: 37.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.558e-05/0.3118, allocations: 89.58 kB / 427.3 MB, free: 37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-06/0.3118, allocations: 0 / 427.3 MB, free: 37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.3118, allocations: 15.81 kB / 427.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.149e-05/0.3118, allocations: 315 kB / 427.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-06/0.3118, allocations: 2.594 kB / 427.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.738e-06/0.3119, allocations: 20.12 kB / 427.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.25e-05/0.3119, allocations: 16.22 kB / 427.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3119, allocations: 3.938 kB / 427.7 MB, free: 36.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.059e-05/0.312, allocations: 46.53 kB / 427.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.312, allocations: 2.906 kB / 427.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.312, allocations: 4.766 kB / 427.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.312, allocations: 3.188 kB / 427.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.649e-05/0.3121, allocations: 2.812 kB / 427.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.3121, allocations: 0 / 427.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.432e-05/0.3121, allocations: 6.875 kB / 427.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.3121, allocations: 3.984 kB / 427.8 MB, free: 36.59 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.386e-05/0.3122, allocations: 188.4 kB / 427.9 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.326e-05/0.3122, allocations: 113.7 kB / 428 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.332e-05/0.3122, allocations: 111.2 kB / 428.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/0.3123, allocations: 176.3 kB / 428.3 MB, free: 36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.692e-05/0.3123, allocations: 188 kB / 428.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-05/0.3123, allocations: 176.3 kB / 428.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.3124, allocations: 410.5 kB / 429.1 MB, free: 35.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.3125, allocations: 106.1 kB / 429.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.494e-05/0.3125, allocations: 103.7 kB / 429.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.346e-05/0.3125, allocations: 179.1 kB / 429.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.3125, allocations: 177.8 kB / 429.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.317e-05/0.3126, allocations: 183.3 kB / 429.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-05/0.3126, allocations: 186.8 kB / 430 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.187e-05/0.3127, allocations: 306.3 kB / 430.3 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.108e-05/0.3127, allocations: 189.1 kB / 430.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.3127, allocations: 179.1 kB / 430.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.16e-05/0.3128, allocations: 109 kB / 430.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.149e-05/0.3128, allocations: 180.5 kB / 430.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.3128, allocations: 107.3 kB / 431 MB, free: 33.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.659e-05/0.3129, allocations: 75.28 kB / 431.1 MB, free: 33.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3129, allocations: 0 / 431.1 MB, free: 33.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002131/0.3131, allocations: 2.906 kB / 431.1 MB, free: 33.08 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 6.224e-05/0.3131, allocations: 176.7 kB / 431.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.325e-05/0.3132, allocations: 9.844 kB / 431.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3132, allocations: 0 / 431.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.533e-06/0.3132, allocations: 4.031 kB / 431.3 MB, free: 32.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.3135, allocations: 458.8 kB / 431.8 MB, free: 32.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001348/0.3136, allocations: 156.3 kB / 431.9 MB, free: 32.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.159e-05/0.3137, allocations: 0.6719 MB / 432.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.536e-05/0.3137, allocations: 3.938 kB / 432.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.386e-05/0.3137, allocations: 11.38 kB / 432.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3137, allocations: 0 / 432.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of Templates: time 0.001544/0.3153, allocations: 176.2 kB / 432.8 MB, free: 31.55 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=50 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Functions.Test.TestTimeConstants_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Functions.Test.TestTimeConstants.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches