Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.009/2.009, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004949/0.0004949, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1435, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4689/0.6125, allocations: 78.21 MB / 386.7 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003992/0.6129, allocations: 75.14 kB / 386.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09205/0.705, allocations: 13.83 MB / 400.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.596e-06/0.7051, allocations: 0 / 400.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.592e-05/0.7052, allocations: 16.59 kB / 400.7 MB, free: 13.35 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.004289/0.7095, allocations: 0.9917 MB / 401.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.7096, allocations: 7.875 kB / 401.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004919/0.7101, allocations: 93.19 kB / 401.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003595/0.7105, allocations: 85.86 kB / 401.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/0.7121, allocations: 449.4 kB / 402.3 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003281/0.7125, allocations: 97.09 kB / 402.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000249/0.7128, allocations: 45.78 kB / 402.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002941/0.7157, allocations: 0.6733 MB / 403.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.047e-05/0.7159, allocations: 0 / 403.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.716, allocations: 16.97 kB / 403.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.7161, allocations: 11.59 kB / 403.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00298/0.7191, allocations: 0.4888 MB / 403.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007341/0.7265, allocations: 1.881 MB / 405.5 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005324/0.7319, allocations: 0.7612 MB / 406.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.7321, allocations: 11.47 kB / 406.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.484e-05/0.7321, allocations: 54.59 kB / 406.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 7.745e-06/0.7322, allocations: 0 / 406.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.01368/0.7459, allocations: 1.614 MB / 407.9 MB, free: 9.668 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002072/0.7461, allocations: 0.5707 MB / 408.5 MB, free: 8.977 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/0.7474, allocations: 461.9 kB / 409 MB, free: 8.812 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002364/0.7476, allocations: 43.67 kB / 409 MB, free: 8.781 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/0.748, allocations: 305.4 kB / 409.3 MB, free: 8.578 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003445/0.7483, allocations: 187.2 kB / 409.5 MB, free: 8.441 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.462e-05/0.7484, allocations: 14.84 kB / 409.5 MB, free: 8.438 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.7486, allocations: 336 kB / 409.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.75, allocations: 213.1 kB / 410 MB, free: 8.082 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/0.7518, allocations: 428 kB / 410.4 MB, free: 7.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.7534, allocations: 278.8 kB / 410.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.7534, allocations: 3.875 kB / 410.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005798/0.7592, allocations: 0.826 MB / 411.5 MB, free: 7.504 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.204e-05/0.7594, allocations: 37.3 kB / 411.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.7594, allocations: 0 / 411.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002238/0.7617, allocations: 234.6 kB / 411.8 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/0.7638, allocations: 136.5 kB / 411.9 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01582/0.7797, allocations: 5.254 MB / 417.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.7815, allocations: 87.16 kB / 417.3 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/0.7817, allocations: 22.64 kB / 417.3 MB, free: 3.086 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006596/0.7824, allocations: 190.4 kB / 417.5 MB, free: 2.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000321/0.7827, allocations: 65.88 kB / 417.6 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00627/0.789, allocations: 0.8412 MB / 418.4 MB, free: 2.691 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.7891, allocations: 11.36 kB / 418.4 MB, free: 2.688 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.7891, allocations: 0 / 418.4 MB, free: 2.688 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005672/0.7948, allocations: 1.103 MB / 419.5 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0085/0.8034, allocations: 1.577 MB / 421.1 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/0.8035, allocations: 0 / 421.1 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002407/0.8059, allocations: 141.9 kB / 421.2 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/0.808, allocations: 183.7 kB / 421.4 MB, free: 1.184 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.8082, allocations: 14.89 kB / 421.4 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/0.821, allocations: 3.603 MB / 425 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.8211, allocations: 0 / 425 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007698/0.8288, allocations: 1.155 MB / 426.2 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008873/0.8298, allocations: 201.5 kB / 426.4 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.8301, allocations: 14.78 kB / 426.4 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.8313, allocations: 45.06 kB / 426.4 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003145/0.8317, allocations: 42.62 kB / 426.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.009e-05/0.8318, allocations: 22.98 kB / 426.5 MB, free: 13.74 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001153/0.833, allocations: 372.5 kB / 426.9 MB, free: 13.6 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.643e-06/0.8331, allocations: 0 / 426.9 MB, free: 13.6 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00216/0.8352, allocations: 225.4 kB / 427.1 MB, free: 13.59 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * 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: 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.008632/0.844, allocations: 1.725 MB / 428.8 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005609/0.8496, allocations: 1.032 MB / 429.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.8497, allocations: 3.812 kB / 429.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003197/0.8529, allocations: 0.5574 MB / 430.4 MB, free: 11.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/0.8549, allocations: 176.4 kB / 430.6 MB, free: 11.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006736/0.8616, allocations: 2.579 MB / 433.2 MB, free: 9.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005794/0.8623, allocations: 0.9016 MB / 434.1 MB, free: 9.051 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005711/0.8629, allocations: 240.6 kB / 434.3 MB, free: 9.012 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.8629, allocations: 0 / 434.3 MB, free: 9.012 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.116/3.979, allocations: 16.82 MB / 451.1 MB, free: 12.95 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat