Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001307/0.001307, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 94.14 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1962/0.1962, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.091e-05, allocations: 4 kB / 418.4 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1239, allocations: 58.86 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.963/8.087, allocations: 2.824 GB / 3.29 GB, free: 49.04 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/8.088, allocations: 81.86 kB / 3.29 GB, free: 49 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.687/10.77, allocations: 0.5715 GB / 3.862 GB, free: 48.28 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.743e-06/10.77, allocations: 0 / 3.862 GB, free: 48.28 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001584/10.77, allocations: 48.56 kB / 3.862 GB, free: 48.27 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01398/10.79, allocations: 2.853 MB / 3.865 GB, free: 46.65 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/10.79, allocations: 11.25 kB / 3.865 GB, free: 46.65 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004703/10.79, allocations: 0.54 MB / 3.865 GB, free: 46.52 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004501/10.8, allocations: 1.436 MB / 3.867 GB, free: 45.83 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/10.8, allocations: 64.44 kB / 3.867 GB, free: 45.82 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000246/10.8, allocations: 72.59 kB / 3.867 GB, free: 45.82 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002792/10.8, allocations: 1.558 MB / 3.868 GB, free: 45.28 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002883/10.8, allocations: 1.778 MB / 3.87 GB, free: 44.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.764e-05/10.8, allocations: 7.281 kB / 3.87 GB, free: 44.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/10.8, allocations: 3.812 kB / 3.87 GB, free: 44.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/10.8, allocations: 100.1 kB / 3.87 GB, free: 44.41 MB / 0.5105 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.6713/11.48, allocations: 88.63 MB / 3.957 GB, free: 52.09 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/11.48, allocations: 0.933 MB / 3.958 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/11.48, allocations: 0.5624 MB / 3.958 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03165/11.51, allocations: 16.92 MB / 3.975 GB, free: 41.65 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00138/11.51, allocations: 0.7215 MB / 3.975 GB, free: 41.53 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 5.009e-06/11.51, allocations: 0 / 3.975 GB, free: 41.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96): time 0.01202/11.52, allocations: 4.76 MB / 3.98 GB, free: 40.48 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/11.52, allocations: 378.2 kB / 3.98 GB, free: 40.04 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/11.53, allocations: 0.7976 MB / 3.981 GB, free: 39.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001015/11.53, allocations: 29.36 kB / 3.981 GB, free: 39.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006159/11.53, allocations: 0.6781 MB / 3.982 GB, free: 39.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003102/11.53, allocations: 324.7 kB / 3.982 GB, free: 39.45 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.421e-05/11.53, allocations: 3.969 kB / 3.982 GB, free: 39.45 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000113/11.53, allocations: 358.1 kB / 3.982 GB, free: 39.15 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007481/11.53, allocations: 0.5996 MB / 3.983 GB, free: 39.15 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009231/11.53, allocations: 0.8915 MB / 3.984 GB, free: 38.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00681/11.54, allocations: 1.753 MB / 3.986 GB, free: 38.84 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-05/11.54, allocations: 7.641 kB / 3.986 GB, free: 38.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.009341/11.54, allocations: 2.797 MB / 3.988 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008921/11.55, allocations: 2.743 MB / 3.991 GB, free: 35.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/11.55, allocations: 6.875 kB / 3.991 GB, free: 35.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/11.55, allocations: 130.6 kB / 3.991 GB, free: 35.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/11.55, allocations: 318.8 kB / 3.991 GB, free: 35.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008622/11.55, allocations: 1.256 MB / 3.993 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/11.55, allocations: 179.2 kB / 3.993 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001519/11.55, allocations: 65.23 kB / 3.993 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/11.55, allocations: 6.266 kB / 3.993 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008184/11.56, allocations: 2.543 MB / 3.995 GB, free: 34.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.004e-05/11.56, allocations: 11.06 kB / 3.995 GB, free: 34.74 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/11.56, allocations: 120.9 kB / 3.996 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/11.56, allocations: 314.8 kB / 3.996 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008386/11.56, allocations: 1.263 MB / 3.997 GB, free: 33.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/11.56, allocations: 145.3 kB / 3.997 GB, free: 33.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/11.56, allocations: 61.27 kB / 3.997 GB, free: 33.68 MB / 0.5261 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.0005055/11.56, allocations: 180 kB / 3.997 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00343/11.57, allocations: 1.476 MB / 3.999 GB, free: 33.41 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/11.57, allocations: 127.2 kB / 3.999 GB, free: 33.35 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005739/11.57, allocations: 3.812 MB / 4.003 GB, free: 33.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.133e-05/11.57, allocations: 49.19 kB / 4.003 GB, free: 33.01 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/11.57, allocations: 3.375 kB / 4.003 GB, free: 33.01 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004021/11.58, allocations: 3.013 MB / 4.006 GB, free: 32.64 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008813/11.59, allocations: 5.339 MB / 4.011 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/11.59, allocations: 11.22 kB / 4.011 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008751/11.59, allocations: 196.3 kB / 4.011 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004781/11.59, allocations: 174.2 kB / 4.011 GB, free: 32.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.491e-05/11.59, allocations: 25.27 kB / 4.011 GB, free: 32.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009555/11.59, allocations: 1.347 MB / 4.013 GB, free: 31.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/11.59, allocations: 3.562 kB / 4.013 GB, free: 31.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005692/11.59, allocations: 3.686 MB / 4.016 GB, free: 30.67 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/11.6, allocations: 0.4924 MB / 4.017 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002178/11.6, allocations: 10.16 kB / 4.017 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009232/11.6, allocations: 101.2 kB / 4.017 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/11.6, allocations: 75.98 kB / 4.017 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.897e-05/11.6, allocations: 44.77 kB / 4.017 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001361/11.6, allocations: 0.8499 MB / 4.018 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.71e-07/11.6, allocations: 0 / 4.018 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0117/11.61, allocations: 2.135 MB / 4.02 GB, free: 30.35 MB / 0.5261 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.0229/11.63, allocations: 6.881 MB / 4.027 GB, free: 28.92 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007203/11.64, allocations: 2.831 MB / 4.029 GB, free: 28.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.056e-05/11.64, allocations: 3.188 kB / 4.029 GB, free: 28.68 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00238/11.64, allocations: 1.199 MB / 4.03 GB, free: 28.61 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004297/11.65, allocations: 0.5243 MB / 4.031 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/11.66, allocations: 4.384 MB / 4.035 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/11.66, allocations: 1.641 MB / 4.037 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004014/11.67, allocations: 1.776 MB / 4.039 GB, free: 26.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/11.67, allocations: 0.7372 MB / 4.039 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of SimCode: time 2.385e-06/11.67, allocations: 0 / 4.039 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1405/11.81, allocations: 73.05 MB / 4.111 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/11.81, allocations: 186.8 kB / 4.111 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.078/16.89, allocations: 0 / 4.111 GB, free: 4.176 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat