Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008727/0.0008726, allocations: 91.11 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1961/0.1961, allocations: 44.14 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.205e-05/2.206e-05, allocations: 8.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1255, allocations: 61.91 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.227/7.353, allocations: 2.829 GB / 3.324 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004213/7.353, allocations: 80.27 kB / 3.324 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.834/10.19, allocations: 0.5778 GB / 3.902 GB, free: 53.9 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.077e-06/10.19, allocations: 0 / 3.902 GB, free: 53.9 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003745/10.19, allocations: 42.84 kB / 3.902 GB, free: 53.9 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01819/10.21, allocations: 2.868 MB / 3.905 GB, free: 52.77 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.641e-05/10.21, allocations: 12.86 kB / 3.905 GB, free: 52.77 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005881/10.21, allocations: 0.5389 MB / 3.905 GB, free: 52.68 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007627/10.22, allocations: 1.431 MB / 3.907 GB, free: 52.32 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003364/10.22, allocations: 57.3 kB / 3.907 GB, free: 52.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/10.22, allocations: 72.06 kB / 3.907 GB, free: 52.32 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005696/10.23, allocations: 1.569 MB / 3.908 GB, free: 52.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007263/10.23, allocations: 1.785 MB / 3.91 GB, free: 51.93 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-05/10.23, allocations: 6.75 kB / 3.91 GB, free: 51.93 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005318/10.23, allocations: 7.281 kB / 3.91 GB, free: 51.93 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002248/10.23, allocations: 102.8 kB / 3.91 GB, free: 51.93 MB / 0.5417 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.1951/10.43, allocations: 88.66 MB / 3.997 GB, free: 29.07 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/10.43, allocations: 0.9235 MB / 3.997 GB, free: 29.05 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/10.43, allocations: 0.5669 MB / 3.998 GB, free: 29.04 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03586/10.47, allocations: 16.92 MB / 4.015 GB, free: 18.03 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002259/10.47, allocations: 0.7296 MB / 4.015 GB, free: 17.91 MB / 0.573 GB Notification: Performance of pre-optimization done (n=88): time 8.776e-06/10.47, allocations: 0 / 4.015 GB, free: 17.91 MB / 0.573 GB Notification: Performance of matching and sorting (n=96): time 0.01754/10.49, allocations: 4.765 MB / 4.02 GB, free: 16.7 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002562/10.49, allocations: 380.1 kB / 4.02 GB, free: 16.26 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003375/10.49, allocations: 0.7952 MB / 4.021 GB, free: 32.11 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002531/10.49, allocations: 25.7 kB / 4.021 GB, free: 32.07 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009885/10.49, allocations: 0.6862 MB / 4.022 GB, free: 31.75 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005787/10.49, allocations: 320.2 kB / 4.022 GB, free: 31.55 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/10.5, allocations: 1.031 kB / 4.022 GB, free: 31.55 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002503/10.5, allocations: 359.6 kB / 4.022 GB, free: 31.24 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/10.5, allocations: 0.6015 MB / 4.023 GB, free: 31.24 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/10.5, allocations: 0.8937 MB / 4.024 GB, free: 30.92 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003748/10.5, allocations: 1.077 MB / 4.025 GB, free: 30.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/10.5, allocations: 0 / 4.025 GB, free: 30.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.006775/10.51, allocations: 2.117 MB / 4.027 GB, free: 30.75 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001456/10.51, allocations: 2.749 MB / 4.03 GB, free: 27.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.314e-05/10.51, allocations: 14.3 kB / 4.03 GB, free: 27.88 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000409/10.51, allocations: 118.1 kB / 4.03 GB, free: 27.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/10.51, allocations: 319.8 kB / 4.03 GB, free: 27.86 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/10.51, allocations: 1.257 MB / 4.031 GB, free: 26.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/10.51, allocations: 187.3 kB / 4.032 GB, free: 26.78 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002194/10.52, allocations: 64.12 kB / 4.032 GB, free: 26.78 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/10.52, allocations: 4.156 kB / 4.032 GB, free: 26.78 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004374/10.52, allocations: 1.86 MB / 4.033 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-05/10.52, allocations: 10.3 kB / 4.033 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003116/10.52, allocations: 118.8 kB / 4.034 GB, free: 26.71 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/10.52, allocations: 315.5 kB / 4.034 GB, free: 26.71 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/10.52, allocations: 1.266 MB / 4.035 GB, free: 25.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001684/10.52, allocations: 151.2 kB / 4.035 GB, free: 25.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/10.52, allocations: 60.06 kB / 4.035 GB, free: 25.64 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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.0005259/10.52, allocations: 181.1 kB / 4.035 GB, free: 25.5 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003703/10.53, allocations: 1.475 MB / 4.037 GB, free: 25.36 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/10.53, allocations: 126.6 kB / 4.037 GB, free: 25.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005789/10.53, allocations: 3.816 MB / 4.041 GB, free: 24.89 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.613e-05/10.53, allocations: 42.7 kB / 4.041 GB, free: 24.89 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/10.53, allocations: 3.953 kB / 4.041 GB, free: 24.89 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004043/10.54, allocations: 3.02 MB / 4.044 GB, free: 24.51 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008722/10.55, allocations: 5.343 MB / 4.049 GB, free: 24.05 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/10.55, allocations: 3.312 kB / 4.049 GB, free: 24.05 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000897/10.55, allocations: 203.1 kB / 4.049 GB, free: 24.04 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004795/10.55, allocations: 171.9 kB / 4.049 GB, free: 24.02 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/10.55, allocations: 26.42 kB / 4.049 GB, free: 24.02 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/10.55, allocations: 1.341 MB / 4.051 GB, free: 22.97 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/10.55, allocations: 6.938 kB / 4.051 GB, free: 22.97 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006295/10.56, allocations: 3.679 MB / 4.054 GB, free: 22.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001647/10.56, allocations: 0.4948 MB / 4.055 GB, free: 22.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006456/10.56, allocations: 14.19 kB / 4.055 GB, free: 22.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/10.56, allocations: 98.28 kB / 4.055 GB, free: 22.26 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/10.56, allocations: 76.12 kB / 4.055 GB, free: 22.26 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/10.56, allocations: 41.81 kB / 4.055 GB, free: 22.26 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001572/10.56, allocations: 0.8535 MB / 4.056 GB, free: 22.14 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.41e-07/10.56, allocations: 0 / 4.056 GB, free: 22.14 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01063/10.57, allocations: 2.135 MB / 4.058 GB, free: 21.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 26 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].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 (105): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * 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.02059/10.59, allocations: 6.885 MB / 4.065 GB, free: 20.03 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005951/10.6, allocations: 2.825 MB / 4.067 GB, free: 19.79 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/10.6, allocations: 0 / 4.067 GB, free: 19.79 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002053/10.6, allocations: 1.206 MB / 4.069 GB, free: 19.73 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00365/10.61, allocations: 0.5042 MB / 4.069 GB, free: 19.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/10.62, allocations: 4.401 MB / 4.073 GB, free: 17.79 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002055/10.62, allocations: 1.639 MB / 4.075 GB, free: 16.5 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003938/10.63, allocations: 1.776 MB / 4.077 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/10.63, allocations: 0.7384 MB / 4.077 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of SimCode: time 2.375e-06/10.63, allocations: 0 / 4.077 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6714/11.3, allocations: 74.3 MB / 4.15 GB, free: 87.76 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/11.3, allocations: 177.8 kB / 4.15 GB, free: 87.57 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.138/16.44, allocations: 0 / 4.15 GB, free: 87.57 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat