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.Valves.TestValveDiscrete.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.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.144/2.144, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004365/0.0004367, allocations: 12 kB / 314.3 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2738, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03644/0.3103, allocations: 23.65 MB / 392.8 MB, free: 3.004 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0197/0.33, allocations: 11.36 MB / 404.2 MB, free: 7.617 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00048/0.3305, allocations: 11.94 kB / 404.2 MB, free: 7.605 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007441/0.3313, allocations: 207 kB / 404.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0101/0.3414, allocations: 2.809 MB / 407.2 MB, free: 4.586 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00711/0.3485, allocations: 1.901 MB / 409.1 MB, free: 2.68 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.3498, allocations: 0.5743 MB / 409.7 MB, free: 2.105 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004755/0.3503, allocations: 208.9 kB / 409.9 MB, free: 1.898 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/0.3513, allocations: 394.6 kB / 410.3 MB, free: 1.512 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003333/0.3517, allocations: 203.2 kB / 410.5 MB, free: 1.312 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-05/0.3518, allocations: 16 kB / 410.5 MB, free: 1.297 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0168/0.3686, allocations: 7.004 MB / 417.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.3688, allocations: 79.72 kB / 417.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.369, allocations: 101.5 kB / 417.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006643/0.3757, allocations: 2.943 MB / 420.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.278e-06/0.3757, allocations: 0 / 420.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.282e-06/0.3757, allocations: 0 / 420.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.089e-06/0.3758, allocations: 0 / 420.6 MB, free: 7.148 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003407/0.3792, allocations: 1.162 MB / 421.8 MB, free: 5.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.3792, allocations: 8.031 kB / 421.8 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002233/0.3815, allocations: 231.2 kB / 422 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000688/0.3822, allocations: 362.1 kB / 422.4 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.416e-05/0.3823, allocations: 24.66 kB / 422.4 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.837e-05/0.3823, allocations: 35.94 kB / 422.4 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.3844, allocations: 0.5901 MB / 423 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.3844, allocations: 0 / 423 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.718e-05/0.3845, allocations: 16 kB / 423 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.3845, allocations: 8 kB / 423.1 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002216/0.3868, allocations: 0.564 MB / 423.6 MB, free: 4.031 MB / 346.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.0038/0.3906, allocations: 2.578 MB / 426.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002029/0.3926, allocations: 474.2 kB / 426.7 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3941/0.7868, allocations: 52.02 MB / 478.7 MB, free: 57.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.7868, allocations: 36.34 kB / 478.7 MB, free: 57.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 3.803e-06/0.7869, allocations: 2.844 kB / 478.7 MB, free: 57.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.003586/0.7904, allocations: 0.8242 MB / 479.5 MB, free: 57.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.7905, allocations: 105.9 kB / 479.6 MB, free: 56.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.7909, allocations: 284.3 kB / 479.9 MB, free: 56.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.7909, allocations: 32.86 kB / 480 MB, free: 56.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.7911, allocations: 266.5 kB / 480.2 MB, free: 56.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.684e-05/0.7912, allocations: 83.31 kB / 480.3 MB, free: 56.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.251e-05/0.7912, allocations: 6 kB / 480.3 MB, free: 56.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.7913, allocations: 325.3 kB / 480.6 MB, free: 56.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004568/0.7917, allocations: 156.2 kB / 480.8 MB, free: 56.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005084/0.7923, allocations: 272.8 kB / 481 MB, free: 56.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004824/0.7928, allocations: 184.3 kB / 481.2 MB, free: 56.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.382e-06/0.7928, allocations: 3.828 kB / 481.2 MB, free: 56.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001194/0.794, allocations: 455.7 kB / 481.7 MB, free: 56.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.794, allocations: 9.828 kB / 481.7 MB, free: 56.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.725e-06/0.7941, allocations: 2.625 kB / 481.7 MB, free: 56.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.7941, allocations: 8.594 kB / 481.7 MB, free: 56.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.7945, allocations: 97.38 kB / 481.8 MB, free: 56.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.7946, allocations: 8.766 kB / 481.8 MB, free: 56.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/0.795, allocations: 63.83 kB / 481.9 MB, free: 55.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.795, allocations: 16.66 kB / 481.9 MB, free: 55.99 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002102/0.7952, allocations: 161.5 kB / 482 MB, free: 55.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/0.7953, allocations: 35.61 kB / 482.1 MB, free: 55.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002863/0.7982, allocations: 1.924 MB / 484 MB, free: 55.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.48e-05/0.7983, allocations: 30.64 kB / 484 MB, free: 55.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.7983, allocations: 5.969 kB / 484 MB, free: 55.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.7983, allocations: 3.609 kB / 484 MB, free: 55.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.7994, allocations: 0.9927 MB / 485 MB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.03e-06/0.7995, allocations: 0 / 485 MB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.7998, allocations: 79.19 kB / 485.1 MB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.605e-06/0.7999, allocations: 5.219 kB / 485.1 MB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.7999, allocations: 9.328 kB / 485.1 MB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.37e-06/0.7999, allocations: 4.125 kB / 485.1 MB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.521e-06/0.7999, allocations: 3.672 kB / 485.1 MB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.8017, allocations: 1.09 MB / 486.2 MB, free: 55.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.8019, allocations: 205 kB / 486.4 MB, free: 54.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.979e-05/0.802, allocations: 6.469 kB / 486.4 MB, free: 54.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003598/0.8024, allocations: 43.91 kB / 486.5 MB, free: 54.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.8025, allocations: 36.39 kB / 486.5 MB, free: 54.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.8025, allocations: 11.91 kB / 486.5 MB, free: 54.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002974/0.8028, allocations: 261.9 kB / 486.8 MB, free: 54.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.8029, allocations: 0 / 486.8 MB, free: 54.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002588/0.8054, allocations: 0.9901 MB / 487.7 MB, free: 54.84 MB / 394.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: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005563/0.811, allocations: 1.171 MB / 488.9 MB, free: 54.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.8125, allocations: 0.6196 MB / 489.5 MB, free: 54.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.486e-06/0.8125, allocations: 0 / 489.5 MB, free: 54.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007724/0.8133, allocations: 0.5288 MB / 490.1 MB, free: 54.65 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.8145, allocations: 176.3 kB / 490.2 MB, free: 54.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.8172, allocations: 2.001 MB / 492.2 MB, free: 53.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.8177, allocations: 0.9744 MB / 493.2 MB, free: 53.04 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.8179, allocations: 42.69 kB / 493.3 MB, free: 53.04 MB / 394.7 MB Notification: Performance of SimCode: time 1.607e-06/0.8179, allocations: 0 / 493.3 MB, free: 53.04 MB / 394.7 MB Notification: Performance of Templates: time 0.0419/0.8598, allocations: 26.92 MB / 0.508 GB, free: 31.21 MB / 394.7 MB