Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.989/1.989, allocations: 209.2 MB / 224.8 MB, free: 0.6055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006165/0.0006166, allocations: 8 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1133, allocations: 48.71 MB / 331.4 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.49/11.6, allocations: 3.662 GB / 3.985 GB, free: 104.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/11.6, allocations: 88.06 kB / 3.985 GB, free: 104.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.479/20.08, allocations: 1.43 GB / 5.415 GB, free: 20.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.597e-06/20.08, allocations: 4 kB / 5.415 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000353/20.08, allocations: 69.11 kB / 5.415 GB, free: 20.86 MB / 0.5105 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.03569/20.12, allocations: 7.314 MB / 5.422 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/20.12, allocations: 15.56 kB / 5.422 GB, free: 16.38 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001738/20.12, allocations: 284 kB / 5.423 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002068/20.12, allocations: 276.8 kB / 5.423 GB, free: 16.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006021/20.13, allocations: 1.507 MB / 5.424 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/20.13, allocations: 145.2 kB / 5.424 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009871/20.13, allocations: 176.3 kB / 5.425 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008969/20.14, allocations: 2.963 MB / 5.428 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.427e-05/20.14, allocations: 7.938 kB / 5.428 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005324/20.14, allocations: 79.97 kB / 5.428 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003239/20.14, allocations: 162.6 kB / 5.428 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/20.15, allocations: 3.239 MB / 5.431 GB, free: 10 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0333/20.18, allocations: 10.89 MB / 5.442 GB, free: 304 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00707/20.19, allocations: 1.878 MB / 5.443 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004783/20.19, allocations: 3.495 MB / 5.447 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.645e-05/20.19, allocations: 59.78 kB / 5.447 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002359/20.2, allocations: 213 kB / 5.447 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=150): time 9.147e-06/20.2, allocations: 4 kB / 5.447 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=150): time 0.0125/20.21, allocations: 2.826 MB / 5.45 GB, free: 7.578 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/20.21, allocations: 197.2 kB / 5.45 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003516/20.21, allocations: 1.332 MB / 5.451 GB, free: 6.008 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006612/20.21, allocations: 65.7 kB / 5.451 GB, free: 5.938 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001151/20.22, allocations: 0.9443 MB / 5.452 GB, free: 4.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001119/20.22, allocations: 0.5199 MB / 5.453 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003401/20.22, allocations: 44 kB / 5.453 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002883/20.22, allocations: 399.1 kB / 5.453 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003219/20.22, allocations: 0.8475 MB / 5.454 GB, free: 3.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00452/20.22, allocations: 1.535 MB / 5.456 GB, free: 1.312 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004441/20.23, allocations: 1.232 MB / 5.457 GB, free: 48 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.909e-05/20.23, allocations: 4 kB / 5.457 GB, free: 44 kB / 0.5261 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.504/20.73, allocations: 2.893 MB / 5.46 GB, free: 38.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002038/20.74, allocations: 8.321 MB / 5.468 GB, free: 29.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.273e-05/20.74, allocations: 23.5 kB / 5.468 GB, free: 29.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005491/20.74, allocations: 0.6258 MB / 5.468 GB, free: 29.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004301/20.75, allocations: 0.498 MB / 5.469 GB, free: 29.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00247/20.75, allocations: 1.512 MB / 5.47 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004256/20.75, allocations: 165.2 kB / 5.47 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/20.75, allocations: 165.8 kB / 5.471 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/20.75, allocations: 5.812 kB / 5.471 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01004/20.76, allocations: 2.695 MB / 5.473 GB, free: 28.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001311/20.76, allocations: 22.2 kB / 5.473 GB, free: 28.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002291/20.77, allocations: 340 kB / 5.474 GB, free: 28.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004616/20.77, allocations: 0.5492 MB / 5.474 GB, free: 28.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/20.77, allocations: 1.263 MB / 5.475 GB, free: 27.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003204/20.78, allocations: 150.9 kB / 5.476 GB, free: 27.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008396/20.78, allocations: 165.9 kB / 5.476 GB, free: 27.38 MB / 0.5261 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 () * Number of clocked 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.00244/20.78, allocations: 0.625 MB / 5.476 GB, free: 27.19 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007433/20.78, allocations: 186.4 kB / 5.476 GB, free: 27.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/20.79, allocations: 3.211 MB / 5.48 GB, free: 26.97 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.904e-05/20.79, allocations: 18.48 kB / 5.48 GB, free: 26.97 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/20.79, allocations: 0 / 5.48 GB, free: 26.97 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.389e-05/20.79, allocations: 8.203 kB / 5.48 GB, free: 26.97 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01559/20.81, allocations: 4.655 MB / 5.484 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/20.81, allocations: 6.625 kB / 5.484 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002614/20.81, allocations: 306.8 kB / 5.484 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004537/20.82, allocations: 0.5678 MB / 5.485 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005594/20.82, allocations: 62.72 kB / 5.485 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/20.82, allocations: 1.514 MB / 5.487 GB, free: 25.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/20.82, allocations: 8.938 kB / 5.487 GB, free: 25.32 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007622/20.83, allocations: 2.596 MB / 5.489 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/20.83, allocations: 299.2 kB / 5.489 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/20.83, allocations: 33.38 kB / 5.489 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003004/20.83, allocations: 107.5 kB / 5.49 GB, free: 24.26 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006728/20.83, allocations: 138.8 kB / 5.49 GB, free: 24.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003849/20.83, allocations: 112.8 kB / 5.49 GB, free: 24.25 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002581/20.83, allocations: 1.044 MB / 5.491 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.71e-07/20.83, allocations: 1.5 kB / 5.491 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01569/20.85, allocations: 3.08 MB / 5.494 GB, free: 24.09 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 simulation (159): * Single equations (assignments): 156 * 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.0255/20.88, allocations: 8.441 MB / 5.502 GB, free: 21.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01207/20.89, allocations: 3.975 MB / 5.506 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-05/20.89, allocations: 3.062 kB / 5.506 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003362/20.89, allocations: 0.9701 MB / 5.507 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007597/20.9, allocations: 0.8535 MB / 5.508 GB, free: 20.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02517/20.92, allocations: 21.35 MB / 5.529 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00185/20.93, allocations: 1.65 MB / 5.53 GB, free: 18.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002919/20.93, allocations: 0.8962 MB / 5.531 GB, free: 18.43 MB / 0.5417 GB Notification: Performance of SimCode: time 1.232e-06/20.93, allocations: 3.594 kB / 5.531 GB, free: 18.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.761/25.69, allocations: 90.1 MB / 5.619 GB, free: 11.71 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat