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.BranchingPipes17.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.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.321/2.321, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.177e-05/2.186e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3647, allocations: 54.85 MB / 358.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.234/2.599, allocations: 0.6871 GB / 1.037 GB, free: 126.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/2.599, allocations: 77.38 kB / 1.037 GB, free: 126.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.418/6.017, allocations: 0.6079 GB / 1.645 GB, free: 39 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.604e-06/6.017, allocations: 0 / 1.645 GB, free: 39 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003755/6.018, allocations: 61.92 kB / 1.645 GB, free: 38.99 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01535/6.033, allocations: 3.194 MB / 1.648 GB, free: 37.73 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/6.033, allocations: 14.56 kB / 1.648 GB, free: 37.73 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005136/6.038, allocations: 455.9 kB / 1.648 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009029/6.048, allocations: 2 MB / 1.65 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/6.048, allocations: 55.97 kB / 1.65 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/6.049, allocations: 108.5 kB / 1.651 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006979/6.056, allocations: 2.191 MB / 1.653 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008207/6.064, allocations: 2.46 MB / 1.655 GB, free: 36.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-05/6.064, allocations: 7.156 kB / 1.655 GB, free: 36.72 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004728/6.065, allocations: 9.938 kB / 1.655 GB, free: 36.72 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003164/6.065, allocations: 159.4 kB / 1.655 GB, free: 36.72 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.03235/6.097, allocations: 11.2 MB / 1.666 GB, free: 30.57 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004777/6.102, allocations: 1.749 MB / 1.668 GB, free: 30.26 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002696/6.105, allocations: 1.038 MB / 1.669 GB, free: 30.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001573/6.107, allocations: 459.4 kB / 1.669 GB, free: 29.95 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003206/6.11, allocations: 1.122 MB / 1.67 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=167): time 7.905e-06/6.11, allocations: 0 / 1.67 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195): time 0.0707/6.181, allocations: 10.25 MB / 1.68 GB, free: 28.86 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/6.181, allocations: 262.5 kB / 1.681 GB, free: 28.58 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002428/6.183, allocations: 1.101 MB / 1.682 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007874/6.184, allocations: 27.77 kB / 1.682 GB, free: 28.38 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009771/6.185, allocations: 0.8978 MB / 1.683 GB, free: 27.91 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001221/6.186, allocations: 0.6337 MB / 1.683 GB, free: 27.49 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/6.187, allocations: 1.219 kB / 1.683 GB, free: 27.49 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001932/6.187, allocations: 405 kB / 1.684 GB, free: 27.18 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002614/6.19, allocations: 1.008 MB / 1.685 GB, free: 27.17 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003432/6.193, allocations: 1.487 MB / 1.686 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01666/6.21, allocations: 2.372 MB / 1.688 GB, free: 26.67 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.489e-05/6.21, allocations: 3.75 kB / 1.688 GB, free: 26.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.02275/6.233, allocations: 4.02 MB / 1.692 GB, free: 26.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001174/6.234, allocations: 4.681 MB / 1.697 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.756e-05/6.234, allocations: 14.78 kB / 1.697 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/6.235, allocations: 277.7 kB / 1.697 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004923/6.24, allocations: 0.5703 MB / 1.698 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/6.242, allocations: 3.03 MB / 1.701 GB, free: 19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004469/6.247, allocations: 184.1 kB / 1.701 GB, free: 18.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/6.248, allocations: 205.9 kB / 1.701 GB, free: 18.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/6.248, allocations: 12.16 kB / 1.701 GB, free: 18.98 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02034/6.268, allocations: 3.628 MB / 1.705 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.881e-05/6.269, allocations: 13.22 kB / 1.705 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008963/6.269, allocations: 279.9 kB / 1.705 GB, free: 18.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004859/6.274, allocations: 0.5623 MB / 1.705 GB, free: 18.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003817/6.278, allocations: 3.024 MB / 1.708 GB, free: 32.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003763/6.282, allocations: 169.8 kB / 1.709 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/6.283, allocations: 204.4 kB / 1.709 GB, free: 32.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001371/6.285, allocations: 234.7 kB / 1.709 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02039/6.305, allocations: 3.55 MB / 1.712 GB, free: 31.85 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/6.306, allocations: 207.9 kB / 1.713 GB, free: 31.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02649/6.333, allocations: 4.36 MB / 1.717 GB, free: 31.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.1e-05/6.333, allocations: 26.64 kB / 1.717 GB, free: 31.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/6.333, allocations: 6.969 kB / 1.717 GB, free: 31.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02143/6.354, allocations: 3.72 MB / 1.721 GB, free: 31.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03424/6.388, allocations: 7.461 MB / 1.728 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.189e-05/6.388, allocations: 2.969 kB / 1.728 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003837/6.392, allocations: 450.8 kB / 1.728 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/6.394, allocations: 297.1 kB / 1.729 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006201/6.394, allocations: 77.23 kB / 1.729 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003818/6.398, allocations: 3.719 MB / 1.732 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/6.398, allocations: 11.5 kB / 1.732 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0248/6.423, allocations: 5.554 MB / 1.738 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002178/6.425, allocations: 0.5221 MB / 1.738 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007328/6.426, allocations: 28.28 kB / 1.738 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002815/6.429, allocations: 95.64 kB / 1.738 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005738/6.429, allocations: 180.6 kB / 1.739 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004431/6.43, allocations: 181.5 kB / 1.739 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001718/6.432, allocations: 0.7965 MB / 1.739 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.172e-06/6.432, allocations: 0 / 1.739 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01061/6.442, allocations: 1.896 MB / 1.741 GB, free: 24.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03538/6.478, allocations: 10.29 MB / 1.751 GB, free: 20.94 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01174/6.49, allocations: 4.338 MB / 1.756 GB, free: 17.54 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/6.49, allocations: 2.062 kB / 1.756 GB, free: 17.54 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004101/6.494, allocations: 1.551 MB / 1.757 GB, free: 16.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008275/6.502, allocations: 0.9152 MB / 1.758 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0247/6.527, allocations: 6.63 MB / 1.765 GB, free: 9.891 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001952/6.529, allocations: 1.745 MB / 1.766 GB, free: 8.48 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00379/6.533, allocations: 1.083 MB / 1.767 GB, free: 7.5 MB / 0.5105 GB Notification: Performance of SimCode: time 2.224e-06/6.533, allocations: 0 / 1.767 GB, free: 7.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.292/11.82, allocations: 104.4 MB / 1.869 GB, free: 57.09 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat