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.001613/0.001613, allocations: 179.7 kB / 14.15 MB, free: 1.176 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.399/1.399, allocations: 221.3 MB / 236 MB, free: 2.926 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.000913/0.000913, allocations: 76.12 kB / 287 MB, free: 196 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1955/0.1955, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.757e-05, allocations: 7.938 kB / 451.9 MB, free: 9.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1263, allocations: 61.91 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.419/7.545, allocations: 2.83 GB / 3.332 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/7.546, allocations: 81.33 kB / 3.332 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.9/10.45, allocations: 0.583 GB / 3.915 GB, free: 49.85 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.196e-06/10.45, allocations: 4.719 kB / 3.915 GB, free: 49.85 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003362/10.45, allocations: 42.31 kB / 3.915 GB, free: 49.84 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.01479/10.46, allocations: 2.859 MB / 3.917 GB, free: 48.39 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.663e-05/10.46, allocations: 10.53 kB / 3.917 GB, free: 48.39 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001118/10.46, allocations: 195.4 kB / 3.918 GB, free: 48.35 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005199/10.47, allocations: 0.5373 MB / 3.918 GB, free: 48.26 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006837/10.47, allocations: 1.443 MB / 3.92 GB, free: 47.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/10.48, allocations: 109.8 kB / 3.92 GB, free: 47.89 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009373/10.48, allocations: 132.2 kB / 3.92 GB, free: 47.89 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006914/10.48, allocations: 2.267 MB / 3.922 GB, free: 47.5 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.14e-05/10.48, allocations: 9.594 kB / 3.922 GB, free: 47.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/10.48, allocations: 59.05 kB / 3.922 GB, free: 47.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/10.48, allocations: 97.12 kB / 3.922 GB, free: 47.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003924/10.49, allocations: 1.982 MB / 3.924 GB, free: 47.48 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.01377/10.5, allocations: 9.806 MB / 3.934 GB, free: 41.54 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002864/10.5, allocations: 1.338 MB / 3.935 GB, free: 41.52 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008847/10.51, allocations: 0.6314 MB / 3.936 GB, free: 41.51 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04618/10.55, allocations: 24.52 MB / 3.96 GB, free: 26.57 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003605/10.55, allocations: 1.057 MB / 3.961 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 7.655e-06/10.55, allocations: 0 / 3.961 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.0134/10.57, allocations: 4.468 MB / 3.965 GB, free: 25.78 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/10.57, allocations: 279 kB / 3.965 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/10.57, allocations: 1.022 MB / 3.966 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001739/10.57, allocations: 46.33 kB / 3.966 GB, free: 25.27 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006435/10.57, allocations: 0.6419 MB / 3.967 GB, free: 25.01 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003723/10.57, allocations: 360.5 kB / 3.967 GB, free: 24.79 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.074e-05/10.57, allocations: 23.72 kB / 3.967 GB, free: 24.79 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001542/10.57, allocations: 361.4 kB / 3.968 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/10.57, allocations: 0.6174 MB / 3.968 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/10.57, allocations: 0.9127 MB / 3.969 GB, free: 24.16 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/10.58, allocations: 0.7622 MB / 3.97 GB, free: 24.11 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/10.58, allocations: 3.562 kB / 3.97 GB, free: 24.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.00356/10.58, allocations: 1.884 MB / 3.972 GB, free: 23.94 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009188/10.58, allocations: 2.753 MB / 3.974 GB, free: 21.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.281e-05/10.58, allocations: 11.88 kB / 3.974 GB, free: 21.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005798/10.58, allocations: 129.7 kB / 3.974 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/10.58, allocations: 323.8 kB / 3.975 GB, free: 21.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008415/10.58, allocations: 1.247 MB / 3.976 GB, free: 20.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/10.58, allocations: 158.8 kB / 3.976 GB, free: 19.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/10.58, allocations: 63.16 kB / 3.976 GB, free: 19.99 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/10.58, allocations: 5.156 kB / 3.976 GB, free: 19.99 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002899/10.59, allocations: 1.709 MB / 3.978 GB, free: 19.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/10.59, allocations: 15.53 kB / 3.978 GB, free: 19.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004371/10.59, allocations: 130.9 kB / 3.978 GB, free: 19.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/10.59, allocations: 309.4 kB / 3.978 GB, free: 19.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007136/10.59, allocations: 1.254 MB / 3.98 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/10.59, allocations: 159.6 kB / 3.98 GB, free: 18.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/10.59, allocations: 59.86 kB / 3.98 GB, free: 18.83 MB / 0.5417 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 () * 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.0005702/10.59, allocations: 221.2 kB / 3.98 GB, free: 18.68 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002603/10.59, allocations: 142.8 kB / 3.98 GB, free: 18.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006734/10.6, allocations: 4.733 MB / 3.985 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.413e-05/10.6, allocations: 53.22 kB / 3.985 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/10.6, allocations: 0 / 3.985 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004585/10.6, allocations: 3.961 MB / 3.989 GB, free: 17.61 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/10.61, allocations: 6.77 MB / 3.995 GB, free: 16.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/10.61, allocations: 3.75 kB / 3.995 GB, free: 16.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/10.62, allocations: 254.7 kB / 3.996 GB, free: 16.13 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008005/10.62, allocations: 175.7 kB / 3.996 GB, free: 16.07 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/10.62, allocations: 41.67 kB / 3.996 GB, free: 16.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/10.62, allocations: 1.286 MB / 3.997 GB, free: 30.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/10.62, allocations: 0 / 3.997 GB, free: 30.91 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006955/10.63, allocations: 4.238 MB / 4.001 GB, free: 29.03 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002168/10.63, allocations: 0.5564 MB / 4.002 GB, free: 28.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008431/10.63, allocations: 26.44 kB / 4.002 GB, free: 28.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002049/10.63, allocations: 131.9 kB / 4.002 GB, free: 28.62 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003318/10.63, allocations: 90.86 kB / 4.002 GB, free: 28.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/10.63, allocations: 42.36 kB / 4.002 GB, free: 28.59 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003085/10.63, allocations: 0.9776 MB / 4.003 GB, free: 28.21 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.202e-06/10.63, allocations: 0 / 4.003 GB, free: 28.21 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01422/10.65, allocations: 2.22 MB / 4.005 GB, free: 27.73 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) * 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.02526/10.67, allocations: 7.041 MB / 4.012 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007699/10.68, allocations: 3.083 MB / 4.015 GB, free: 23.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/10.68, allocations: 4.062 kB / 4.015 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002561/10.68, allocations: 1.425 MB / 4.016 GB, free: 22.95 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004313/10.69, allocations: 0.6451 MB / 4.017 GB, free: 22.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01669/10.71, allocations: 4.927 MB / 4.022 GB, free: 20.72 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002429/10.71, allocations: 1.718 MB / 4.023 GB, free: 19.9 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004722/10.71, allocations: 1.736 MB / 4.025 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001405/10.71, allocations: 0.8253 MB / 4.026 GB, free: 19.16 MB / 0.5573 GB Notification: Performance of SimCode: time 1.683e-06/10.71, allocations: 4 kB / 4.026 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7389/11.45, allocations: 89.45 MB / 4.113 GB, free: 50.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002381/11.45, allocations: 225.8 kB / 4.114 GB, free: 50.68 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.004/17.46, allocations: 0 / 4.114 GB, free: 50.68 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