Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadModel(ModelicaTest): time 2.213/2.213, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004395, allocations: 12 kB / 314.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.276, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.08296/0.359, allocations: 54.33 MB / 423.5 MB, free: 4.254 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03916/0.3982, allocations: 22.83 MB / 446.4 MB, free: 13.37 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.3996, allocations: 35.69 kB / 446.4 MB, free: 13.33 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001898/0.4015, allocations: 461.9 kB / 446.9 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0154/0.4169, allocations: 4.094 MB / 450.9 MB, free: 8.773 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01143/0.4284, allocations: 3.023 MB / 454 MB, free: 5.742 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00304/0.4315, allocations: 1.4 MB / 455.4 MB, free: 4.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.4328, allocations: 0.5345 MB / 455.9 MB, free: 3.789 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01415/0.4469, allocations: 6.447 MB / 462.4 MB, free: 13.34 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.4482, allocations: 0.502 MB / 462.9 MB, free: 12.83 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000207/0.4485, allocations: 40 kB / 462.9 MB, free: 12.79 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01724/0.4657, allocations: 6.739 MB / 469.6 MB, free: 6.047 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004757/0.4662, allocations: 183.3 kB / 469.8 MB, free: 5.867 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004732/0.4667, allocations: 213.2 kB / 470 MB, free: 5.652 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00798/0.4747, allocations: 3.36 MB / 473.4 MB, free: 2.285 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.583e-06/0.4748, allocations: 0 / 473.4 MB, free: 2.285 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.742e-06/0.4748, allocations: 0 / 473.4 MB, free: 2.285 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.4748, allocations: 0 / 473.4 MB, free: 2.285 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.005046/0.4799, allocations: 1.626 MB / 475 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.48, allocations: 8.031 kB / 475 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.254/0.734, allocations: 0.6205 MB / 475.6 MB, free: 97.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.7355, allocations: 0.6062 MB / 476.2 MB, free: 96.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.7357, allocations: 63.34 kB / 476.3 MB, free: 96.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.7359, allocations: 72.75 kB / 476.4 MB, free: 96.96 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005316/0.7412, allocations: 1.369 MB / 477.7 MB, free: 96.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.983e-05/0.7413, allocations: 6.672 kB / 477.7 MB, free: 96.49 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.7414, allocations: 35.67 kB / 477.8 MB, free: 96.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.482e-05/0.7414, allocations: 22.66 kB / 477.8 MB, free: 96.47 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005402/0.7468, allocations: 1.246 MB / 479.1 MB, free: 96.16 MB / 394.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.007746/0.7546, allocations: 5.469 MB / 484.5 MB, free: 91.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004051/0.7587, allocations: 0.8456 MB / 485.4 MB, free: 91.58 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2187/0.9775, allocations: 92.61 MB / 0.5644 GB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.449e-05/0.9776, allocations: 38.56 kB / 0.5645 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006871/0.9783, allocations: 96.89 kB / 0.5646 GB, free: 10.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 4.759e-06/0.9783, allocations: 0 / 0.5646 GB, free: 10.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.007279/0.9856, allocations: 1.586 MB / 0.5661 GB, free: 8.965 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.9858, allocations: 195.8 kB / 0.5663 GB, free: 8.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009543/0.9868, allocations: 0.5312 MB / 0.5668 GB, free: 8.188 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.9869, allocations: 37.7 kB / 0.5668 GB, free: 8.145 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004375/0.9874, allocations: 464.8 kB / 0.5673 GB, free: 7.688 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002774/0.9876, allocations: 197.9 kB / 0.5675 GB, free: 7.496 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.979e-05/0.9877, allocations: 16 kB / 0.5675 GB, free: 7.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.9879, allocations: 346.8 kB / 0.5678 GB, free: 7.133 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008314/0.9888, allocations: 225.8 kB / 0.568 GB, free: 6.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001121/0.9899, allocations: 0.5398 MB / 0.5686 GB, free: 6.227 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.991, allocations: 295.8 kB / 0.5688 GB, free: 5.938 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.991, allocations: 4 kB / 0.5689 GB, free: 5.934 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002692/0.9937, allocations: 0.8466 MB / 0.5697 GB, free: 5.074 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003434/0.9941, allocations: 377.8 kB / 0.57 GB, free: 4.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.9941, allocations: 15.95 kB / 0.5701 GB, free: 4.555 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00464/0.9988, allocations: 440.7 kB / 0.5705 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.9998, allocations: 195.7 kB / 0.5707 GB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/1.001, allocations: 1.14 MB / 0.5718 GB, free: 2.742 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009549/1.002, allocations: 71.88 kB / 0.5718 GB, free: 2.672 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/1.002, allocations: 51.98 kB / 0.5719 GB, free: 2.621 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/1.002, allocations: 4 kB / 0.5719 GB, free: 2.617 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002302/1.005, allocations: 0.7504 MB / 0.5726 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/1.005, allocations: 12 kB / 0.5726 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/1.005, allocations: 19.94 kB / 0.5727 GB, free: 1.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/1.006, allocations: 215.7 kB / 0.5729 GB, free: 1.629 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.787e-05/1.006, allocations: 19.92 kB / 0.5729 GB, free: 1.609 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007116/1.006, allocations: 67.53 kB / 0.5729 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/1.007, allocations: 47.98 kB / 0.573 GB, free: 1.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000646/1.007, allocations: 316.8 kB / 0.5733 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/1.007, allocations: 75.11 kB / 0.5734 GB, free: 1.105 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006483/1.014, allocations: 3.562 MB / 0.5768 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.541e-05/1.014, allocations: 47.92 kB / 0.5769 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.504e-06/1.014, allocations: 0 / 0.5769 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/1.014, allocations: 11.98 kB / 0.5769 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/1.017, allocations: 1.706 MB / 0.5786 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.882e-06/1.017, allocations: 0 / 0.5786 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007103/1.018, allocations: 131.8 kB / 0.5787 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002746/1.021, allocations: 0.7861 MB / 0.5795 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/1.021, allocations: 16 kB / 0.5795 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/1.022, allocations: 1.54 MB / 0.581 GB, free: 9.207 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.482e-06/1.022, allocations: 4.031 kB / 0.581 GB, free: 9.203 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003857/1.026, allocations: 2.039 MB / 0.583 GB, free: 7.105 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007728/1.027, allocations: 414 kB / 0.5834 GB, free: 6.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001743/1.027, allocations: 12 kB / 0.5834 GB, free: 6.668 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006933/1.028, allocations: 55.89 kB / 0.5834 GB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/1.028, allocations: 51.77 kB / 0.5835 GB, free: 6.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.884e-05/1.028, allocations: 31.98 kB / 0.5835 GB, free: 6.535 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009859/1.029, allocations: 0.5294 MB / 0.584 GB, free: 5.992 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.03e-07/1.029, allocations: 0 / 0.584 GB, free: 5.992 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004166/1.034, allocations: 1.247 MB / 0.5852 GB, free: 4.812 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005404/1.039, allocations: 1.111 MB / 0.5863 GB, free: 3.852 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004007/1.043, allocations: 1.392 MB / 0.5877 GB, free: 2.457 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.086e-06/1.043, allocations: 4 kB / 0.5877 GB, free: 2.453 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/1.045, allocations: 0.8316 MB / 0.5885 GB, free: 1.621 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/1.047, allocations: 346.9 kB / 0.5888 GB, free: 1.285 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/1.054, allocations: 3.838 MB / 0.5926 GB, free: 13.53 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/1.056, allocations: 1.288 MB / 0.5938 GB, free: 12.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003557/1.056, allocations: 87.41 kB / 0.5939 GB, free: 12.12 MB / 442.7 MB Notification: Performance of SimCode: time 2.048e-06/1.056, allocations: 0 / 0.5939 GB, free: 12.12 MB / 442.7 MB Notification: Performance of Templates: time 0.07843/1.135, allocations: 43.41 MB / 0.6363 GB, free: 0.6797 MB / 474.7 MB