Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.469/2.469, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.297e-05/3.298e-05, allocations: 4 kB / 309.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.43/0.4301, allocations: 54.85 MB / 364.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6841/1.114, allocations: 215.4 MB / 0.5665 GB, free: 99.38 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/1.115, allocations: 83.97 kB / 0.5665 GB, free: 99.38 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.477/3.592, allocations: 0.5087 GB / 1.075 GB, free: 23.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.315e-06/3.592, allocations: 0 / 1.075 GB, free: 23.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000137/3.592, allocations: 27.98 kB / 1.075 GB, free: 23.56 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.007205/3.599, allocations: 1.908 MB / 1.077 GB, free: 21.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/3.599, allocations: 12.03 kB / 1.077 GB, free: 21.59 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003879/3.6, allocations: 131.1 kB / 1.077 GB, free: 21.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004762/3.605, allocations: 350 kB / 1.078 GB, free: 21.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002913/3.608, allocations: 0.9021 MB / 1.078 GB, free: 20.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.902e-05/3.608, allocations: 66 kB / 1.079 GB, free: 20.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002566/3.608, allocations: 80 kB / 1.079 GB, free: 20.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003883/3.612, allocations: 1.138 MB / 1.08 GB, free: 18.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.122e-05/3.612, allocations: 3.938 kB / 1.08 GB, free: 18.79 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001975/3.612, allocations: 40 kB / 1.08 GB, free: 18.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/3.612, allocations: 24 kB / 1.08 GB, free: 18.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003309/3.616, allocations: 0.8276 MB / 1.081 GB, free: 17.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/3.626, allocations: 6.28 MB / 1.087 GB, free: 11.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/3.628, allocations: 0.4892 MB / 1.087 GB, free: 10.57 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005541/3.628, allocations: 222.1 kB / 1.087 GB, free: 10.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005504/3.629, allocations: 0.764 MB / 1.088 GB, free: 9.426 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/3.629, allocations: 39 kB / 1.088 GB, free: 9.379 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001002/3.63, allocations: 107.2 kB / 1.088 GB, free: 9.273 MB / 490.7 MB Notification: Performance of pre-optimization done (n=48): time 3.466e-06/3.63, allocations: 0 / 1.088 GB, free: 9.273 MB / 490.7 MB Notification: Performance of matching and sorting (n=48): time 0.00333/3.633, allocations: 0.6986 MB / 1.089 GB, free: 8.562 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/3.633, allocations: 188.4 kB / 1.089 GB, free: 8.336 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/3.635, allocations: 0.7497 MB / 1.09 GB, free: 7.566 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001206/3.635, allocations: 33.7 kB / 1.09 GB, free: 7.527 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004021/3.635, allocations: 0.6093 MB / 1.09 GB, free: 6.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/3.636, allocations: 173.6 kB / 1.091 GB, free: 6.738 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.062e-05/3.636, allocations: 20 kB / 1.091 GB, free: 6.719 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.467e-05/3.636, allocations: 346.8 kB / 1.091 GB, free: 6.371 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007737/3.636, allocations: 265.9 kB / 1.091 GB, free: 6.113 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009127/3.637, allocations: 0.6071 MB / 1.092 GB, free: 5.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008807/3.638, allocations: 359 kB / 1.092 GB, free: 4.988 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/3.638, allocations: 4 kB / 1.092 GB, free: 4.984 MB / 490.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002828/3.641, allocations: 1.03 MB / 1.093 GB, free: 3.945 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.4027/4.044, allocations: 4.183 MB / 1.097 GB, free: 66.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.854e-05/4.044, allocations: 16.98 kB / 1.097 GB, free: 66.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01337/4.057, allocations: 0.7441 MB / 1.098 GB, free: 66.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002695/4.06, allocations: 288.6 kB / 1.098 GB, free: 66.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001832/4.062, allocations: 0.7846 MB / 1.099 GB, free: 66.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/4.065, allocations: 98.5 kB / 1.099 GB, free: 66.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004099/4.065, allocations: 81.38 kB / 1.099 GB, free: 66.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/4.065, allocations: 4.062 kB / 1.099 GB, free: 66.45 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004404/4.07, allocations: 0.9302 MB / 1.1 GB, free: 66.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.853e-05/4.07, allocations: 10.72 kB / 1.1 GB, free: 66.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005509/4.071, allocations: 78.28 kB / 1.1 GB, free: 66.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/4.073, allocations: 301.2 kB / 1.101 GB, free: 66.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003106/4.077, allocations: 1.644 MB / 1.102 GB, free: 65.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/4.079, allocations: 98.64 kB / 1.102 GB, free: 65.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003044/4.079, allocations: 69.19 kB / 1.102 GB, free: 65.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.000483/4.079, allocations: 163.7 kB / 1.102 GB, free: 65.01 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/4.08, allocations: 102.7 kB / 1.103 GB, free: 65.01 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007484/4.087, allocations: 1.5 MB / 1.104 GB, free: 64.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/4.088, allocations: 6.625 kB / 1.104 GB, free: 64.93 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/4.088, allocations: 8.906 kB / 1.104 GB, free: 64.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.091e-05/4.088, allocations: 3 kB / 1.104 GB, free: 64.93 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00577/4.093, allocations: 1.643 MB / 1.106 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/4.093, allocations: 0 / 1.106 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/4.095, allocations: 138.6 kB / 1.106 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006799/4.101, allocations: 0.5674 MB / 1.106 GB, free: 64.56 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/4.102, allocations: 19.3 kB / 1.106 GB, free: 64.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/4.103, allocations: 0.8059 MB / 1.107 GB, free: 64.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/4.103, allocations: 5.125 kB / 1.107 GB, free: 64.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/4.107, allocations: 0.8972 MB / 1.108 GB, free: 63.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/4.109, allocations: 310.9 kB / 1.108 GB, free: 63.55 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005851/4.109, allocations: 17.84 kB / 1.108 GB, free: 63.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00184/4.111, allocations: 67.36 kB / 1.108 GB, free: 63.55 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/4.111, allocations: 57.7 kB / 1.108 GB, free: 63.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/4.112, allocations: 29.73 kB / 1.108 GB, free: 63.55 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001975/4.114, allocations: 0.5815 MB / 1.109 GB, free: 63.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.052e-06/4.114, allocations: 3.156 kB / 1.109 GB, free: 63.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005246/4.119, allocations: 1.023 MB / 1.11 GB, free: 63.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.005603/4.125, allocations: 2.483 MB / 1.112 GB, free: 62.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004172/4.129, allocations: 1.296 MB / 1.114 GB, free: 62.08 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/4.129, allocations: 1.188 kB / 1.114 GB, free: 62.08 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/4.13, allocations: 315.4 kB / 1.114 GB, free: 62.07 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003971/4.134, allocations: 430.1 kB / 1.114 GB, free: 62.06 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00735/4.141, allocations: 1.979 MB / 1.116 GB, free: 61.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006776/4.142, allocations: 1.093 MB / 1.117 GB, free: 60.87 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/4.143, allocations: 455.9 kB / 1.118 GB, free: 60.87 MB / 490.7 MB Notification: Performance of SimCode: time 1.533e-06/4.143, allocations: 0 / 1.118 GB, free: 60.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.576/7.72, allocations: 31.59 MB / 1.149 GB, free: 60.05 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat does not exist to compare? outputFormat=mat