Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 1.831/1.831, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.0004372, allocations: 12 kB / 282.5 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2826, allocations: 48.71 MB / 331.2 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.05299/0.3357, allocations: 35.4 MB / 366.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02345/0.3592, allocations: 13.29 MB / 379.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000881/0.3601, allocations: 19.81 kB / 379.9 MB, free: 13.74 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009219/0.3611, allocations: 242.8 kB / 380.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.3749, allocations: 3.596 MB / 383.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00628/0.3812, allocations: 1.679 MB / 385.4 MB, free: 8.215 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001629/0.3828, allocations: 0.7385 MB / 386.2 MB, free: 7.473 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006249/0.3835, allocations: 273.4 kB / 386.4 MB, free: 7.199 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.3849, allocations: 498.2 kB / 386.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005123/0.3854, allocations: 266.8 kB / 387.2 MB, free: 6.449 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.322e-05/0.3855, allocations: 24 kB / 387.2 MB, free: 6.426 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01756/0.4031, allocations: 7.074 MB / 394.3 MB, free: 15.34 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002418/0.4034, allocations: 91.64 kB / 394.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002685/0.4036, allocations: 125.5 kB / 394.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007372/0.411, allocations: 3.06 MB / 397.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.976e-06/0.4111, allocations: 0 / 397.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.681e-06/0.4111, allocations: 0 / 397.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.4111, allocations: 0 / 397.5 MB, free: 12.05 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.003746/0.4149, allocations: 1.251 MB / 398.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4149, allocations: 12.03 kB / 398.8 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002796/0.4178, allocations: 275.1 kB / 399.1 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009353/0.4187, allocations: 414.5 kB / 399.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.934e-05/0.4188, allocations: 33 kB / 399.5 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.287e-05/0.4189, allocations: 36 kB / 399.5 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002354/0.4213, allocations: 0.6898 MB / 400.2 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.4213, allocations: 7.938 kB / 400.2 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.829e-05/0.4214, allocations: 20 kB / 400.3 MB, free: 9.195 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.4215, allocations: 12 kB / 400.3 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0023/0.4238, allocations: 0.6049 MB / 400.9 MB, free: 8.578 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004667/0.4285, allocations: 2.889 MB / 403.8 MB, free: 5.461 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001861/0.4303, allocations: 462.4 kB / 404.2 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4438/0.8741, allocations: 82.62 MB / 486.8 MB, free: 138.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.8742, allocations: 36.53 kB / 486.9 MB, free: 138.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 3.439e-06/0.8742, allocations: 1.75 kB / 486.9 MB, free: 138.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.003835/0.8781, allocations: 0.9179 MB / 487.8 MB, free: 138.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.8782, allocations: 106.4 kB / 487.9 MB, free: 138.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004669/0.8786, allocations: 355.3 kB / 488.2 MB, free: 138.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.8787, allocations: 30.98 kB / 488.3 MB, free: 138.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.8789, allocations: 312.1 kB / 488.6 MB, free: 138.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.217e-05/0.879, allocations: 109.5 kB / 488.7 MB, free: 138 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.49e-05/0.879, allocations: 5.188 kB / 488.7 MB, free: 138 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.446e-05/0.8791, allocations: 329.1 kB / 489 MB, free: 137.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.8795, allocations: 137.5 kB / 489.1 MB, free: 137.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000508/0.8801, allocations: 285.1 kB / 489.4 MB, free: 137.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004725/0.8805, allocations: 162.8 kB / 489.6 MB, free: 137.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.832e-06/0.8806, allocations: 1.219 kB / 489.6 MB, free: 137.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001368/0.882, allocations: 485.2 kB / 490.1 MB, free: 137.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.8821, allocations: 222.5 kB / 490.3 MB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.8821, allocations: 6.719 kB / 490.3 MB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/0.8847, allocations: 246.6 kB / 490.5 MB, free: 136.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.8852, allocations: 91.47 kB / 490.6 MB, free: 136.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005594/0.8858, allocations: 0.6103 MB / 491.2 MB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.8863, allocations: 57.31 kB / 491.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.717e-05/0.8864, allocations: 28.91 kB / 491.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.8864, allocations: 3.875 kB / 491.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001101/0.8875, allocations: 414.4 kB / 491.7 MB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.8876, allocations: 5.562 kB / 491.7 MB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.8876, allocations: 10.38 kB / 491.7 MB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005524/0.8882, allocations: 114.6 kB / 491.8 MB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.8882, allocations: 10.11 kB / 491.8 MB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.8886, allocations: 53.41 kB / 491.9 MB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.8886, allocations: 28.02 kB / 491.9 MB, free: 136 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003193/0.889, allocations: 245.8 kB / 492.2 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.8891, allocations: 39.34 kB / 492.2 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003031/0.8921, allocations: 2.008 MB / 494.2 MB, free: 134.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-05/0.8922, allocations: 23.25 kB / 494.2 MB, free: 134.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.8922, allocations: 0 / 494.2 MB, free: 134.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.118e-06/0.8923, allocations: 5.047 kB / 494.2 MB, free: 134.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.8935, allocations: 0.9916 MB / 495.2 MB, free: 134 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.027e-06/0.8936, allocations: 0 / 495.2 MB, free: 134 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004232/0.894, allocations: 71.77 kB / 495.3 MB, free: 134 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001863/0.8959, allocations: 0.5931 MB / 495.9 MB, free: 133.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/0.896, allocations: 7.594 kB / 495.9 MB, free: 133.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009184/0.8969, allocations: 1.001 MB / 496.9 MB, free: 132.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.66e-06/0.8969, allocations: 1.875 kB / 496.9 MB, free: 132.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.8989, allocations: 1.308 MB / 498.2 MB, free: 132.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003114/0.8993, allocations: 240.8 kB / 498.5 MB, free: 131.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.462e-05/0.8994, allocations: 13.66 kB / 498.5 MB, free: 131.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/0.8998, allocations: 32.84 kB / 498.5 MB, free: 131.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.9, allocations: 34.5 kB / 498.5 MB, free: 131.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/0.9, allocations: 9.031 kB / 498.5 MB, free: 131.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004179/0.9004, allocations: 307.1 kB / 498.8 MB, free: 131.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.73e-07/0.9004, allocations: 0 / 498.8 MB, free: 131.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003423/0.9039, allocations: 1.141 MB / 500 MB, free: 131.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00544/0.9094, allocations: 1.204 MB / 0.4894 GB, free: 131.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.9115, allocations: 0.7912 MB / 0.4902 GB, free: 130.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.178e-06/0.9115, allocations: 0 / 0.4902 GB, free: 130.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008735/0.9124, allocations: 0.489 MB / 0.4907 GB, free: 130.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.9138, allocations: 196.3 kB / 0.4909 GB, free: 130.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.9167, allocations: 2.11 MB / 0.4929 GB, free: 129.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.9173, allocations: 1.003 MB / 0.4939 GB, free: 128.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.9174, allocations: 45.31 kB / 0.494 GB, free: 128.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.732e-06/0.9175, allocations: 0 / 0.494 GB, free: 128.3 MB / 410.7 MB Notification: Performance of Templates: time 0.04462/0.9621, allocations: 30.94 MB / 0.5242 GB, free: 97.61 MB / 410.7 MB