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.Sources.TestSources.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.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.055e-05/2.054e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3733, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.44/11.82, allocations: 3.668 GB / 4.017 GB, free: 105.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/11.82, allocations: 82 kB / 4.017 GB, free: 105.1 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.871/20.69, allocations: 1.424 GB / 5.441 GB, free: 21.99 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.345e-06/20.69, allocations: 0 / 5.441 GB, free: 21.99 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002626/20.69, allocations: 56.36 kB / 5.441 GB, free: 21.98 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.03321/20.72, allocations: 7.088 MB / 5.448 GB, free: 17.55 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/20.72, allocations: 9.094 kB / 5.448 GB, free: 17.55 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002343/20.73, allocations: 278.8 kB / 5.448 GB, free: 17.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005762/20.73, allocations: 1.512 MB / 5.45 GB, free: 16.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/20.73, allocations: 67.84 kB / 5.45 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008189/20.73, allocations: 107.2 kB / 5.45 GB, free: 16.02 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007763/20.74, allocations: 2.853 MB / 5.453 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007488/20.75, allocations: 2.626 MB / 5.455 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.888e-05/20.75, allocations: 7.281 kB / 5.455 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004408/20.75, allocations: 4 kB / 5.455 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003058/20.75, allocations: 158.2 kB / 5.456 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03216/20.78, allocations: 11.84 MB / 5.467 GB, free: 192 kB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005639/20.79, allocations: 1.599 MB / 5.469 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/20.79, allocations: 0.6811 MB / 5.469 GB, free: 14.17 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003688/20.79, allocations: 2.529 MB / 5.472 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.855e-05/20.79, allocations: 55.88 kB / 5.472 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002001/20.79, allocations: 168.3 kB / 5.472 GB, free: 11.05 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 6.282e-06/20.79, allocations: 0 / 5.472 GB, free: 11.05 MB / 0.5573 GB Notification: Performance of matching and sorting (n=139): time 0.009594/20.8, allocations: 1.941 MB / 5.474 GB, free: 9.398 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/20.8, allocations: 205.2 kB / 5.474 GB, free: 9.156 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/20.81, allocations: 1.142 MB / 5.475 GB, free: 8.121 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000577/20.81, allocations: 29.7 kB / 5.475 GB, free: 8.086 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000991/20.81, allocations: 1.008 MB / 5.476 GB, free: 7.141 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008555/20.81, allocations: 478.6 kB / 5.477 GB, free: 6.711 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/20.81, allocations: 4 kB / 5.477 GB, free: 6.707 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000238/20.81, allocations: 395.1 kB / 5.477 GB, free: 6.34 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/20.81, allocations: 0.7654 MB / 5.478 GB, free: 5.641 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002846/20.82, allocations: 1.445 MB / 5.479 GB, free: 3.988 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02653/20.84, allocations: 3.178 MB / 5.482 GB, free: 0.9219 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.216e-05/20.84, allocations: 8 kB / 5.482 GB, free: 0.9141 MB / 0.5573 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.03221/20.87, allocations: 4.642 MB / 5.487 GB, free: 12.25 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003494/20.88, allocations: 8.328 MB / 5.495 GB, free: 3.258 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.58e-05/20.88, allocations: 20 kB / 5.495 GB, free: 3.238 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/20.88, allocations: 261.5 kB / 5.495 GB, free: 2.977 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004245/20.88, allocations: 0.4914 MB / 5.496 GB, free: 2.484 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003842/20.89, allocations: 1.655 MB / 5.497 GB, free: 0.7773 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004023/20.89, allocations: 127.6 kB / 5.498 GB, free: 0.6523 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007397/20.89, allocations: 167.9 kB / 5.498 GB, free: 500 kB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/20.89, allocations: 0 / 5.498 GB, free: 500 kB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5739/21.47, allocations: 4.305 MB / 5.502 GB, free: 53.78 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.349e-05/21.47, allocations: 20.5 kB / 5.502 GB, free: 53.78 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004278/21.47, allocations: 130.2 kB / 5.502 GB, free: 53.76 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/21.47, allocations: 0.55 MB / 5.503 GB, free: 53.76 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/21.47, allocations: 1.317 MB / 5.504 GB, free: 52.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00321/21.48, allocations: 105.1 kB / 5.504 GB, free: 52.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007271/21.48, allocations: 169.3 kB / 5.504 GB, free: 52.73 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 94 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (262): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 5 * 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 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0008237/21.48, allocations: 173.3 kB / 5.504 GB, free: 52.62 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008847/21.49, allocations: 1.909 MB / 5.506 GB, free: 52.55 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006921/21.49, allocations: 173.5 kB / 5.506 GB, free: 52.51 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/21.5, allocations: 3.027 MB / 5.509 GB, free: 52.31 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.153e-05/21.5, allocations: 19.25 kB / 5.509 GB, free: 52.31 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/21.5, allocations: 1.719 kB / 5.509 GB, free: 52.31 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.511e-05/21.5, allocations: 8.922 kB / 5.509 GB, free: 52.31 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02021/21.52, allocations: 6.347 MB / 5.515 GB, free: 50.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.768e-05/21.52, allocations: 14.22 kB / 5.515 GB, free: 50.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/21.52, allocations: 283.3 kB / 5.516 GB, free: 50.48 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/21.53, allocations: 259.3 kB / 5.516 GB, free: 50.46 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004612/21.53, allocations: 40.09 kB / 5.516 GB, free: 50.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003363/21.53, allocations: 1.684 MB / 5.518 GB, free: 49.43 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.636e-05/21.53, allocations: 10.28 kB / 5.518 GB, free: 49.43 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/21.54, allocations: 3.053 MB / 5.521 GB, free: 48.04 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/21.54, allocations: 294.3 kB / 5.521 GB, free: 47.86 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007563/21.54, allocations: 17.72 kB / 5.521 GB, free: 47.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002734/21.54, allocations: 72.12 kB / 5.521 GB, free: 47.86 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005466/21.54, allocations: 140.8 kB / 5.521 GB, free: 47.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003552/21.55, allocations: 106.9 kB / 5.521 GB, free: 47.85 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001925/21.55, allocations: 0.8498 MB / 5.522 GB, free: 47.74 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.32e-07/21.55, allocations: 0 / 5.522 GB, free: 47.74 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01481/21.56, allocations: 2.95 MB / 5.525 GB, free: 47.67 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0272/21.59, allocations: 10.39 MB / 5.535 GB, free: 43.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00943/21.6, allocations: 3.583 MB / 5.539 GB, free: 42.45 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-05/21.6, allocations: 3.844 kB / 5.539 GB, free: 42.45 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002575/21.6, allocations: 0.8348 MB / 5.539 GB, free: 42.45 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007239/21.61, allocations: 0.7556 MB / 5.54 GB, free: 42.42 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01708/21.63, allocations: 4.571 MB / 5.545 GB, free: 41.58 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/21.63, allocations: 1.637 MB / 5.546 GB, free: 40.85 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00279/21.63, allocations: 0.8794 MB / 5.547 GB, free: 40.84 MB / 0.573 GB Notification: Performance of SimCode: time 1.643e-06/21.63, allocations: 0 / 5.547 GB, free: 40.84 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.682/26.31, allocations: 89.51 MB / 5.635 GB, free: 34.86 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat