Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01001/0.01001, allocations: 165.3 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.601/1.601, allocations: 170.8 MB / 186.6 MB, free: 1.129 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001932/0.001932, allocations: 110.5 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4241/0.4241, allocations: 38.05 MB / 303.7 MB, free: 42.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004638/0.0004639, allocations: 12 kB / 363 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.09985, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.673/7.773, allocations: 2.562 GB / 2.964 GB, free: 47.99 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/7.773, allocations: 82.7 kB / 2.964 GB, free: 47.95 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.366/12.14, allocations: 0.7809 GB / 3.745 GB, free: 33.09 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.246e-06/12.14, allocations: 0 / 3.745 GB, free: 33.09 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003268/12.14, allocations: 59.48 kB / 3.745 GB, free: 33.08 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.02075/12.16, allocations: 3.798 MB / 3.749 GB, free: 31.38 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/12.16, allocations: 10.09 kB / 3.749 GB, free: 31.38 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001548/12.16, allocations: 275.9 kB / 3.749 GB, free: 31.33 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008717/12.17, allocations: 0.7512 MB / 3.75 GB, free: 31.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008958/12.18, allocations: 2.003 MB / 3.752 GB, free: 30.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003834/12.18, allocations: 161.8 kB / 3.752 GB, free: 30.77 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001116/12.18, allocations: 181.8 kB / 3.752 GB, free: 30.77 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/12.19, allocations: 3.334 MB / 3.755 GB, free: 30.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/12.19, allocations: 8.906 kB / 3.755 GB, free: 30.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008069/12.2, allocations: 78.38 kB / 3.756 GB, free: 30.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003376/12.2, allocations: 145.3 kB / 3.756 GB, free: 30.27 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/12.21, allocations: 3.165 MB / 3.759 GB, free: 30.25 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02914/12.24, allocations: 13.63 MB / 3.772 GB, free: 22.03 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008034/12.25, allocations: 2.034 MB / 3.774 GB, free: 21.99 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06023/12.31, allocations: 18.79 MB / 3.792 GB, free: 26.16 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00652/12.31, allocations: 1.59 MB / 3.794 GB, free: 26.04 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001959/12.32, allocations: 164.8 kB / 3.794 GB, free: 25.97 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 7.785e-06/12.32, allocations: 5.25 kB / 3.794 GB, free: 25.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=163): time 0.03711/12.35, allocations: 8.302 MB / 3.802 GB, free: 24.75 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001689/12.35, allocations: 260 kB / 3.802 GB, free: 24.47 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/12.36, allocations: 1.268 MB / 3.804 GB, free: 24.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005885/12.36, allocations: 55.8 kB / 3.804 GB, free: 24.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001/12.36, allocations: 0.8787 MB / 3.805 GB, free: 23.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009572/12.36, allocations: 0.5459 MB / 3.805 GB, free: 23.56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000253/12.36, allocations: 37.69 kB / 3.805 GB, free: 23.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/12.36, allocations: 383.2 kB / 3.806 GB, free: 23.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003227/12.36, allocations: 1.01 MB / 3.807 GB, free: 23.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00373/12.37, allocations: 1.442 MB / 3.808 GB, free: 22.81 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003795/12.37, allocations: 1.245 MB / 3.809 GB, free: 22.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/12.37, allocations: 3.625 kB / 3.809 GB, free: 22.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01116/12.38, allocations: 3.132 MB / 3.812 GB, free: 22.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001643/12.38, allocations: 4.358 MB / 3.816 GB, free: 17.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.002e-05/12.38, allocations: 10.38 kB / 3.816 GB, free: 17.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004689/12.39, allocations: 0.528 MB / 3.817 GB, free: 17.83 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003728/12.39, allocations: 459.7 kB / 3.817 GB, free: 17.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/12.4, allocations: 2.702 MB / 3.82 GB, free: 15.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004224/12.4, allocations: 265.3 kB / 3.82 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006647/12.4, allocations: 94.83 kB / 3.82 GB, free: 15.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/12.4, allocations: 2.875 kB / 3.82 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009096/12.41, allocations: 2.768 MB / 3.823 GB, free: 15.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.825e-05/12.41, allocations: 11.06 kB / 3.823 GB, free: 15.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/12.41, allocations: 207.3 kB / 3.823 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/12.41, allocations: 467.6 kB / 3.824 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/12.42, allocations: 1.875 MB / 3.826 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003962/12.42, allocations: 263.9 kB / 3.826 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005679/12.42, allocations: 92.55 kB / 3.826 GB, free: 14 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002179/12.42, allocations: 0.7097 MB / 3.827 GB, free: 13.74 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006325/12.42, allocations: 188.2 kB / 3.827 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01618/12.44, allocations: 7.45 MB / 3.834 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/12.44, allocations: 87.06 kB / 3.834 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/12.44, allocations: 3.953 kB / 3.834 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01316/12.45, allocations: 6.52 MB / 3.841 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02543/12.48, allocations: 11.18 MB / 3.851 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.407e-05/12.48, allocations: 3.969 kB / 3.851 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002813/12.48, allocations: 357.7 kB / 3.852 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004291/12.49, allocations: 1.174 MB / 3.853 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005102/12.49, allocations: 67.34 kB / 3.853 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003425/12.49, allocations: 3.189 MB / 3.856 GB, free: 8.672 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/12.49, allocations: 9.469 kB / 3.856 GB, free: 8.672 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01626/12.51, allocations: 7.449 MB / 3.863 GB, free: 6.133 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/12.51, allocations: 0.6936 MB / 3.864 GB, free: 5.699 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008504/12.51, allocations: 59.39 kB / 3.864 GB, free: 5.664 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003113/12.51, allocations: 188.6 kB / 3.864 GB, free: 5.625 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005125/12.51, allocations: 151.7 kB / 3.864 GB, free: 5.605 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002379/12.51, allocations: 72.66 kB / 3.865 GB, free: 5.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002444/12.52, allocations: 1.08 MB / 3.866 GB, free: 5.172 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.61e-07/12.52, allocations: 0 / 3.866 GB, free: 5.172 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01239/12.53, allocations: 2.531 MB / 3.868 GB, free: 4.664 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03171/12.56, allocations: 11.44 MB / 3.879 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01377/12.57, allocations: 4.742 MB / 3.884 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.494e-05/12.57, allocations: 3.719 kB / 3.884 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006117/12.58, allocations: 2.456 MB / 3.886 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007755/12.59, allocations: 0.835 MB / 3.887 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7611/13.35, allocations: 137.3 MB / 4.021 GB, free: 38.82 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002369/13.35, allocations: 2.168 MB / 4.023 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006522/13.36, allocations: 2.253 MB / 4.025 GB, free: 37.95 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002675/13.36, allocations: 1.211 MB / 4.027 GB, free: 37.94 MB / 0.4948 GB Notification: Performance of SimCode: time 1.453e-06/13.36, allocations: 0 / 4.027 GB, free: 37.94 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.64/14, allocations: 105.7 MB / 4.13 GB, free: 53.32 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000302/14, allocations: 270.1 kB / 4.13 GB, free: 52.97 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.662/21.66, allocations: 2.781 kB / 4.13 GB, free: 52.97 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat