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.001093/0.001093, allocations: 177 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000938/0.0009378, allocations: 91.45 kB / 292.1 MB, free: 10.91 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.3785/0.3785, allocations: 44.22 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003314/0.0003314, allocations: 8 kB / 460 MB, free: 1.418 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5384/0.5387, allocations: 61.9 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.216/6.755, allocations: 2.83 GB / 3.339 GB, free: 37.54 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/6.755, allocations: 90.39 kB / 3.34 GB, free: 37.46 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.083/8.838, allocations: 0.5845 GB / 3.924 GB, free: 34.78 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.465e-06/8.838, allocations: 0 / 3.924 GB, free: 34.78 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001926/8.839, allocations: 42.56 kB / 3.924 GB, free: 34.77 MB / 0.5261 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.01108/8.85, allocations: 3.056 MB / 3.927 GB, free: 33.03 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/8.85, allocations: 10.34 kB / 3.927 GB, free: 33.03 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007886/8.851, allocations: 192.2 kB / 3.927 GB, free: 32.92 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004058/8.855, allocations: 0.5402 MB / 3.928 GB, free: 32.79 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004193/8.859, allocations: 1.45 MB / 3.929 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/8.859, allocations: 117.1 kB / 3.929 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000466/8.86, allocations: 132.2 kB / 3.929 GB, free: 32.01 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005028/8.865, allocations: 2.286 MB / 3.932 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.786e-05/8.865, allocations: 10.83 kB / 3.932 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002273/8.865, allocations: 59.38 kB / 3.932 GB, free: 31.01 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/8.865, allocations: 100.9 kB / 3.932 GB, free: 30.99 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004379/8.869, allocations: 2.059 MB / 3.934 GB, free: 30.39 MB / 0.5261 GB 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.01227/8.882, allocations: 9.799 MB / 3.943 GB, free: 22.99 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003295/8.885, allocations: 1.419 MB / 3.945 GB, free: 22.56 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04044/8.925, allocations: 24.45 MB / 3.969 GB, free: 16.75 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002954/8.928, allocations: 1.055 MB / 3.97 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 4.258e-06/8.929, allocations: 3.938 kB / 3.97 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01426/8.943, allocations: 5.307 MB / 3.975 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/8.943, allocations: 277.9 kB / 3.975 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/8.945, allocations: 1.027 MB / 3.976 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001554/8.945, allocations: 49.7 kB / 3.976 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006951/8.946, allocations: 0.6435 MB / 3.977 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00042/8.946, allocations: 358 kB / 3.977 GB, free: 9.152 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/8.946, allocations: 20 kB / 3.977 GB, free: 9.133 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001681/8.947, allocations: 356.5 kB / 3.978 GB, free: 8.793 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/8.948, allocations: 0.6946 MB / 3.978 GB, free: 8.215 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/8.95, allocations: 0.9901 MB / 3.979 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/8.951, allocations: 0.8347 MB / 3.98 GB, free: 6.312 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/8.951, allocations: 4 kB / 3.98 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004128/8.955, allocations: 2.041 MB / 3.982 GB, free: 4.246 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001143/8.957, allocations: 2.76 MB / 3.985 GB, free: 1.297 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/8.957, allocations: 11.94 kB / 3.985 GB, free: 1.285 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005186/8.957, allocations: 137.6 kB / 3.985 GB, free: 1.145 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/8.958, allocations: 319.5 kB / 3.985 GB, free: 0.832 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009165/8.959, allocations: 1.249 MB / 3.986 GB, free: 15.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/8.961, allocations: 159.9 kB / 3.987 GB, free: 15.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/8.961, allocations: 59.98 kB / 3.987 GB, free: 15.32 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/8.961, allocations: 4 kB / 3.987 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003613/8.965, allocations: 1.862 MB / 3.988 GB, free: 13.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/8.965, allocations: 16.08 kB / 3.988 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004521/8.965, allocations: 133.6 kB / 3.989 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/8.966, allocations: 323.2 kB / 3.989 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000839/8.967, allocations: 1.253 MB / 3.99 GB, free: 11.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/8.969, allocations: 159.8 kB / 3.99 GB, free: 11.51 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/8.969, allocations: 59.98 kB / 3.99 GB, free: 11.45 MB / 0.5573 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,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 () * Number of clocked 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.001107/8.97, allocations: 0.5319 MB / 3.991 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/8.97, allocations: 142.3 kB / 3.991 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006595/8.977, allocations: 4.81 MB / 3.996 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.281e-05/8.977, allocations: 59.91 kB / 3.996 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/8.977, allocations: 0 / 3.996 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005225/8.982, allocations: 4.03 MB / 4 GB, free: 1.738 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3396/9.322, allocations: 6.882 MB / 4.006 GB, free: 69.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/9.322, allocations: 7.125 kB / 4.006 GB, free: 69.85 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/9.323, allocations: 250.1 kB / 4.007 GB, free: 69.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007004/9.324, allocations: 189.6 kB / 4.007 GB, free: 69.83 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.222e-05/9.324, allocations: 38.78 kB / 4.007 GB, free: 69.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005568/9.324, allocations: 1.286 MB / 4.008 GB, free: 68.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/9.324, allocations: 4.5 kB / 4.008 GB, free: 68.8 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00559/9.33, allocations: 4.448 MB / 4.012 GB, free: 68.51 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/9.331, allocations: 0.5557 MB / 4.013 GB, free: 68.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/9.331, allocations: 33.61 kB / 4.013 GB, free: 68.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009627/9.332, allocations: 126.2 kB / 4.013 GB, free: 68.41 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/9.333, allocations: 89.88 kB / 4.013 GB, free: 68.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-05/9.333, allocations: 45.58 kB / 4.013 GB, free: 68.41 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001465/9.334, allocations: 0.9946 MB / 4.014 GB, free: 68.3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.21e-07/9.334, allocations: 0 / 4.014 GB, free: 68.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008673/9.343, allocations: 2.215 MB / 4.016 GB, free: 68.3 MB / 0.5573 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 101 * 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.01784/9.361, allocations: 7.278 MB / 4.024 GB, free: 67.37 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005677/9.366, allocations: 3.238 MB / 4.027 GB, free: 67.14 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/9.367, allocations: 0 / 4.027 GB, free: 67.14 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002049/9.369, allocations: 1.49 MB / 4.028 GB, free: 67.07 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003292/9.372, allocations: 0.6425 MB / 4.029 GB, free: 67.07 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/9.387, allocations: 12.09 MB / 4.041 GB, free: 59.62 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/9.388, allocations: 1.719 MB / 4.042 GB, free: 58.89 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002669/9.39, allocations: 1.61 MB / 4.044 GB, free: 58.86 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009304/9.391, allocations: 0.8386 MB / 4.045 GB, free: 58.86 MB / 0.5573 GB Notification: Performance of SimCode: time 7.52e-07/9.391, allocations: 0 / 4.045 GB, free: 58.86 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1286/9.52, allocations: 83.87 MB / 4.127 GB, free: 55.42 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/9.52, allocations: 258.4 kB / 4.127 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.164/14.68, allocations: 2.297 kB / 4.127 GB, free: 55.09 MB / 0.5573 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