Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.352/2.352, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.948e-05/3.969e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4218, allocations: 54.86 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.455/8.877, allocations: 2.655 GB / 3.012 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/8.877, allocations: 78 kB / 3.012 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.453/12.33, allocations: 0.5733 GB / 3.585 GB, free: 45.14 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.984e-06/12.33, allocations: 0 / 3.585 GB, free: 45.14 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002095/12.33, allocations: 39.88 kB / 3.585 GB, free: 45.13 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01306/12.34, allocations: 2.851 MB / 3.588 GB, free: 43.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/12.34, allocations: 11.06 kB / 3.588 GB, free: 43.65 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007515/12.34, allocations: 198.9 kB / 3.588 GB, free: 43.61 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005869/12.35, allocations: 0.5407 MB / 3.589 GB, free: 43.52 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005763/12.36, allocations: 1.434 MB / 3.59 GB, free: 43.15 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002558/12.36, allocations: 116.5 kB / 3.59 GB, free: 43.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006896/12.36, allocations: 122.4 kB / 3.59 GB, free: 43.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007295/12.36, allocations: 2.268 MB / 3.592 GB, free: 42.76 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.79e-05/12.36, allocations: 0 / 3.592 GB, free: 42.76 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002713/12.36, allocations: 59.06 kB / 3.592 GB, free: 42.76 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002069/12.36, allocations: 100.6 kB / 3.593 GB, free: 42.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006992/12.37, allocations: 1.971 MB / 3.594 GB, free: 42.73 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01961/12.39, allocations: 9.652 MB / 3.604 GB, free: 36.81 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004517/12.4, allocations: 1.322 MB / 3.605 GB, free: 36.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/12.4, allocations: 0.6144 MB / 3.606 GB, free: 36.77 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06684/12.46, allocations: 18.84 MB / 3.624 GB, free: 24.79 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005282/12.47, allocations: 1.034 MB / 3.625 GB, free: 24.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 7.283e-06/12.47, allocations: 0 / 3.625 GB, free: 24.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.02411/12.49, allocations: 4.381 MB / 3.629 GB, free: 23.97 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/12.49, allocations: 276.5 kB / 3.63 GB, free: 23.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005539/12.5, allocations: 0.9675 MB / 3.631 GB, free: 23.49 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004221/12.5, allocations: 45.92 kB / 3.631 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009047/12.5, allocations: 0.6351 MB / 3.631 GB, free: 23.11 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006241/12.5, allocations: 363.3 kB / 3.632 GB, free: 22.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/12.5, allocations: 27.72 kB / 3.632 GB, free: 22.89 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001504/12.5, allocations: 359.7 kB / 3.632 GB, free: 22.57 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/12.5, allocations: 0.6115 MB / 3.633 GB, free: 22.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002395/12.51, allocations: 0.9462 MB / 3.634 GB, free: 22.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/12.51, allocations: 0.7587 MB / 3.634 GB, free: 22.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/12.51, allocations: 1.375 kB / 3.634 GB, free: 22.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004736/12.51, allocations: 1.78 MB / 3.636 GB, free: 22.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000733/12.51, allocations: 3.258 MB / 3.639 GB, free: 18.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.999e-05/12.51, allocations: 15.78 kB / 3.639 GB, free: 18.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007356/12.52, allocations: 132.3 kB / 3.639 GB, free: 18.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/12.52, allocations: 321.5 kB / 3.64 GB, free: 18.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009826/12.52, allocations: 1.261 MB / 3.641 GB, free: 17.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/12.52, allocations: 155.1 kB / 3.641 GB, free: 17.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003181/12.52, allocations: 65.75 kB / 3.641 GB, free: 17.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/12.52, allocations: 3.906 kB / 3.641 GB, free: 17.45 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004671/12.53, allocations: 1.683 MB / 3.643 GB, free: 16.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.512e-05/12.53, allocations: 9.531 kB / 3.643 GB, free: 16.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006389/12.53, allocations: 134.1 kB / 3.643 GB, free: 16.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/12.53, allocations: 325.3 kB / 3.643 GB, free: 16.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000951/12.53, allocations: 1.253 MB / 3.644 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/12.53, allocations: 156.7 kB / 3.645 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003679/12.53, allocations: 62.05 kB / 3.645 GB, free: 15.57 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * 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 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007112/12.53, allocations: 224.4 kB / 3.645 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005639/12.54, allocations: 130.2 kB / 3.645 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/12.55, allocations: 4.688 MB / 3.65 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.232e-05/12.55, allocations: 57.62 kB / 3.65 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/12.55, allocations: 0 / 3.65 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009147/12.56, allocations: 3.901 MB / 3.653 GB, free: 11.33 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/12.57, allocations: 6.654 MB / 3.66 GB, free: 8.402 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/12.57, allocations: 0 / 3.66 GB, free: 8.402 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/12.57, allocations: 246.8 kB / 3.66 GB, free: 8.379 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/12.57, allocations: 178.6 kB / 3.66 GB, free: 8.32 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002979/12.58, allocations: 34.05 kB / 3.66 GB, free: 8.305 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008966/12.58, allocations: 1.288 MB / 3.662 GB, free: 7.156 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/12.58, allocations: 3.844 kB / 3.662 GB, free: 7.156 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/12.59, allocations: 4.16 MB / 3.666 GB, free: 4.473 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002111/12.59, allocations: 0.5243 MB / 3.666 GB, free: 3.996 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006809/12.59, allocations: 35.38 kB / 3.666 GB, free: 3.965 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002708/12.59, allocations: 122.6 kB / 3.666 GB, free: 3.871 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005549/12.59, allocations: 86.42 kB / 3.666 GB, free: 3.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002544/12.59, allocations: 39.09 kB / 3.666 GB, free: 3.785 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00291/12.6, allocations: 0.8626 MB / 3.667 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.192e-06/12.6, allocations: 0 / 3.667 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01336/12.61, allocations: 2.187 MB / 3.669 GB, free: 16.88 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * 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 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03047/12.64, allocations: 6.988 MB / 3.676 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01202/12.65, allocations: 3.047 MB / 3.679 GB, free: 7.895 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/12.65, allocations: 0 / 3.679 GB, free: 7.895 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004402/12.66, allocations: 1.423 MB / 3.681 GB, free: 6.559 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006985/12.66, allocations: 0.5835 MB / 3.681 GB, free: 6.129 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8411/13.51, allocations: 127.2 MB / 3.805 GB, free: 48.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001408/13.51, allocations: 1.701 MB / 3.807 GB, free: 47.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/13.51, allocations: 0.8551 MB / 3.808 GB, free: 47.84 MB / 0.5105 GB Notification: Performance of SimCode: time 1.082e-06/13.51, allocations: 2.625 kB / 3.808 GB, free: 47.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.471/18.98, allocations: 77.79 MB / 3.884 GB, free: 63.43 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat