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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.418/2.418, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.874e-05/1.886e-05, allocations: 0 / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3656, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6654/1.031, allocations: 214.7 MB / 0.5595 GB, free: 7.129 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003309/1.031, allocations: 84.75 kB / 0.5595 GB, free: 7.082 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.847/3.878, allocations: 0.504 GB / 1.064 GB, free: 70.54 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.744e-06/3.878, allocations: 0 / 1.064 GB, free: 70.54 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001058/3.878, allocations: 36.91 kB / 1.064 GB, free: 70.54 MB / 474.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.007416/3.886, allocations: 1.902 MB / 1.065 GB, free: 69.7 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/3.886, allocations: 15.2 kB / 1.065 GB, free: 69.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004988/3.891, allocations: 348.1 kB / 1.066 GB, free: 69.63 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002943/3.894, allocations: 0.8959 MB / 1.067 GB, free: 69.34 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.183e-05/3.894, allocations: 31.83 kB / 1.067 GB, free: 69.34 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/3.894, allocations: 44.5 kB / 1.067 GB, free: 69.34 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001926/3.896, allocations: 0.7171 MB / 1.067 GB, free: 69.34 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/3.898, allocations: 0.9438 MB / 1.068 GB, free: 69.06 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.318e-05/3.898, allocations: 3.938 kB / 1.068 GB, free: 69.05 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/3.898, allocations: 3.875 kB / 1.068 GB, free: 69.05 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/3.898, allocations: 22.69 kB / 1.068 GB, free: 69.05 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009476/3.908, allocations: 6.127 MB / 1.074 GB, free: 64.86 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/3.909, allocations: 452.4 kB / 1.075 GB, free: 64.83 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004682/3.91, allocations: 219.3 kB / 1.075 GB, free: 64.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005979/3.91, allocations: 0.7596 MB / 1.076 GB, free: 63.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/3.91, allocations: 37.25 kB / 1.076 GB, free: 63.94 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009162/3.911, allocations: 101.2 kB / 1.076 GB, free: 63.91 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 3.627e-06/3.911, allocations: 0 / 1.076 GB, free: 63.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.007787/3.919, allocations: 1.091 MB / 1.077 GB, free: 63.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/3.919, allocations: 187.9 kB / 1.077 GB, free: 63.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/3.92, allocations: 0.6791 MB / 1.078 GB, free: 63.44 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/3.921, allocations: 29.02 kB / 1.078 GB, free: 63.41 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004183/3.921, allocations: 0.61 MB / 1.078 GB, free: 63.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/3.921, allocations: 170.5 kB / 1.079 GB, free: 62.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-05/3.921, allocations: 0 / 1.079 GB, free: 62.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.972e-05/3.922, allocations: 352.9 kB / 1.079 GB, free: 62.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000658/3.922, allocations: 251.7 kB / 1.079 GB, free: 62.62 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008247/3.923, allocations: 0.5955 MB / 1.08 GB, free: 62.19 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/3.934, allocations: 1.504 MB / 1.081 GB, free: 62.17 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.879e-05/3.934, allocations: 2.25 kB / 1.081 GB, free: 62.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.01249/3.946, allocations: 2.125 MB / 1.083 GB, free: 62.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009007/3.947, allocations: 4.181 MB / 1.087 GB, free: 57.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/3.947, allocations: 16.47 kB / 1.087 GB, free: 57.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004281/3.952, allocations: 426.9 kB / 1.088 GB, free: 57.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/3.954, allocations: 289.6 kB / 1.088 GB, free: 57.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002895/3.957, allocations: 0.9441 MB / 1.089 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/3.959, allocations: 77.75 kB / 1.089 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002105/3.959, allocations: 85.5 kB / 1.089 GB, free: 57.13 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/3.959, allocations: 3.156 kB / 1.089 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009602/3.968, allocations: 1.818 MB / 1.091 GB, free: 57.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/3.968, allocations: 11.19 kB / 1.091 GB, free: 57.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003779/3.969, allocations: 74.83 kB / 1.091 GB, free: 57.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001834/3.971, allocations: 304.5 kB / 1.091 GB, free: 57.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/3.973, allocations: 1.584 MB / 1.093 GB, free: 55.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/3.974, allocations: 78.36 kB / 1.093 GB, free: 55.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001907/3.974, allocations: 75.08 kB / 1.093 GB, free: 55.73 MB / 474.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.0003223/3.974, allocations: 130.5 kB / 1.093 GB, free: 55.6 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009861/3.984, allocations: 1.658 MB / 1.095 GB, free: 55.49 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001935/3.985, allocations: 105.6 kB / 1.095 GB, free: 55.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007016/3.992, allocations: 1.751 MB / 1.097 GB, free: 55.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/3.992, allocations: 7.656 kB / 1.097 GB, free: 55.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/3.992, allocations: 2.438 kB / 1.097 GB, free: 55.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/3.992, allocations: 3.844 kB / 1.097 GB, free: 55.29 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006182/3.998, allocations: 1.798 MB / 1.098 GB, free: 54.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.487e-06/3.998, allocations: 3.188 kB / 1.098 GB, free: 54.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008799/3.999, allocations: 130.3 kB / 1.098 GB, free: 54.94 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/4.001, allocations: 283.4 kB / 1.099 GB, free: 54.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/4.001, allocations: 17.78 kB / 1.099 GB, free: 54.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/4.003, allocations: 0.9211 MB / 1.1 GB, free: 54.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/4.003, allocations: 2.625 kB / 1.1 GB, free: 54.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004479/4.007, allocations: 1.16 MB / 1.101 GB, free: 54.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007073/4.008, allocations: 310.8 kB / 1.101 GB, free: 53.89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/4.008, allocations: 10.12 kB / 1.101 GB, free: 53.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/4.009, allocations: 58.05 kB / 1.101 GB, free: 53.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/4.01, allocations: 56.02 kB / 1.101 GB, free: 53.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.303e-05/4.01, allocations: 25.12 kB / 1.101 GB, free: 53.89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009863/4.011, allocations: 0.5206 MB / 1.102 GB, free: 53.78 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.31e-07/4.011, allocations: 0 / 1.102 GB, free: 53.78 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00483/4.015, allocations: 0.9759 MB / 1.103 GB, free: 53.59 MB / 474.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.007559/4.023, allocations: 2.74 MB / 1.105 GB, free: 51.84 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003113/4.026, allocations: 1.211 MB / 1.106 GB, free: 51.02 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/4.026, allocations: 4 kB / 1.106 GB, free: 51.01 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007433/4.027, allocations: 296.1 kB / 1.107 GB, free: 50.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/4.03, allocations: 405.7 kB / 1.107 GB, free: 50.62 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006063/4.037, allocations: 1.907 MB / 1.109 GB, free: 49.11 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/4.038, allocations: 1.094 MB / 1.11 GB, free: 64.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/4.039, allocations: 454 kB / 1.111 GB, free: 63.89 MB / 490.7 MB Notification: Performance of SimCode: time 1.042e-06/4.039, allocations: 0 / 1.111 GB, free: 63.89 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.436/7.475, allocations: 31.65 MB / 1.141 GB, free: 36.58 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