Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002306/0.002311, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.239/2.239, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3129/0.3129, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.551e-05/3.562e-05, allocations: 7.984 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.351/8.464, allocations: 2.825 GB / 3.298 GB, free: 19.54 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/8.465, allocations: 82.61 kB / 3.298 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.126/11.59, allocations: 0.5766 GB / 3.874 GB, free: 38.06 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.993e-06/11.59, allocations: 0 / 3.874 GB, free: 38.06 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001853/11.59, allocations: 48.27 kB / 3.875 GB, free: 38.05 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.01389/11.6, allocations: 2.855 MB / 3.877 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/11.6, allocations: 11.66 kB / 3.877 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006405/11.61, allocations: 189.6 kB / 3.877 GB, free: 36.31 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005626/11.61, allocations: 0.5443 MB / 3.878 GB, free: 36.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005546/11.62, allocations: 1.43 MB / 3.879 GB, free: 35.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/11.62, allocations: 118.2 kB / 3.88 GB, free: 35.45 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003505/11.62, allocations: 128.6 kB / 3.88 GB, free: 35.41 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006532/11.62, allocations: 2.279 MB / 3.882 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.669e-05/11.62, allocations: 7.781 kB / 3.882 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/11.62, allocations: 52.55 kB / 3.882 GB, free: 34.37 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002003/11.62, allocations: 94.73 kB / 3.882 GB, free: 34.35 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006326/11.63, allocations: 1.978 MB / 3.884 GB, free: 33.29 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.02127/11.65, allocations: 9.802 MB / 3.894 GB, free: 23.94 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004731/11.66, allocations: 1.342 MB / 3.895 GB, free: 22.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/11.66, allocations: 0.6436 MB / 3.895 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07784/11.74, allocations: 24.51 MB / 3.919 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004195/11.74, allocations: 1.053 MB / 3.92 GB, free: 9.957 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 5.24e-06/11.74, allocations: 0 / 3.92 GB, free: 9.957 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.01855/11.76, allocations: 4.482 MB / 3.925 GB, free: 5.398 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001763/11.76, allocations: 281.4 kB / 3.925 GB, free: 5.066 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002489/11.76, allocations: 1.016 MB / 3.926 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003578/11.76, allocations: 45.7 kB / 3.926 GB, free: 3.988 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007403/11.76, allocations: 0.6174 MB / 3.927 GB, free: 3.367 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005578/11.76, allocations: 354.7 kB / 3.927 GB, free: 3.023 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/11.76, allocations: 24 kB / 3.927 GB, free: 3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001948/11.76, allocations: 370.7 kB / 3.927 GB, free: 2.629 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/11.77, allocations: 0.6155 MB / 3.928 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002031/11.77, allocations: 0.9204 MB / 3.929 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002/11.77, allocations: 0.7521 MB / 3.93 GB, free: 224 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/11.77, allocations: 4 kB / 3.93 GB, free: 220 kB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.432/12.2, allocations: 1.792 MB / 3.931 GB, free: 60.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006649/12.2, allocations: 2.738 MB / 3.934 GB, free: 57.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.325e-05/12.2, allocations: 9.859 kB / 3.934 GB, free: 57.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007868/12.2, allocations: 129.4 kB / 3.934 GB, free: 57.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002869/12.21, allocations: 316.4 kB / 3.935 GB, free: 57.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/12.21, allocations: 1.253 MB / 3.936 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002868/12.21, allocations: 159.1 kB / 3.936 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005375/12.21, allocations: 61.08 kB / 3.936 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/12.21, allocations: 2.562 kB / 3.936 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005086/12.22, allocations: 1.707 MB / 3.938 GB, free: 56.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.552e-05/12.22, allocations: 13.39 kB / 3.938 GB, free: 56.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006417/12.22, allocations: 137.6 kB / 3.938 GB, free: 56.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002565/12.22, allocations: 308 kB / 3.938 GB, free: 56.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/12.22, allocations: 1.256 MB / 3.939 GB, free: 55.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/12.22, allocations: 153.8 kB / 3.939 GB, free: 55.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/12.22, allocations: 64.88 kB / 3.94 GB, free: 55.42 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,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.0005864/12.22, allocations: 216 kB / 3.94 GB, free: 55.28 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/12.22, allocations: 148.4 kB / 3.94 GB, free: 55.28 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009937/12.23, allocations: 4.716 MB / 3.944 GB, free: 54.93 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.589e-05/12.23, allocations: 58.3 kB / 3.945 GB, free: 54.93 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/12.23, allocations: 0 / 3.945 GB, free: 54.93 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008399/12.24, allocations: 3.953 MB / 3.948 GB, free: 54.47 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01543/12.26, allocations: 6.778 MB / 3.955 GB, free: 54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/12.26, allocations: 0.5625 kB / 3.955 GB, free: 54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002128/12.26, allocations: 247.4 kB / 3.955 GB, free: 54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/12.26, allocations: 181.4 kB / 3.955 GB, free: 53.98 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/12.26, allocations: 45.45 kB / 3.955 GB, free: 53.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009237/12.26, allocations: 1.28 MB / 3.957 GB, free: 52.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/12.26, allocations: 1.641 kB / 3.957 GB, free: 52.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008421/12.27, allocations: 4.231 MB / 3.961 GB, free: 52.51 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001698/12.27, allocations: 0.5607 MB / 3.961 GB, free: 52.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004294/12.27, allocations: 32.81 kB / 3.961 GB, free: 52.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001845/12.28, allocations: 125.9 kB / 3.962 GB, free: 52.29 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/12.28, allocations: 91.86 kB / 3.962 GB, free: 52.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/12.28, allocations: 45.88 kB / 3.962 GB, free: 52.29 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002052/12.28, allocations: 0.9793 MB / 3.963 GB, free: 52.17 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.91e-07/12.28, allocations: 2.188 kB / 3.963 GB, free: 52.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01047/12.29, allocations: 2.217 MB / 3.965 GB, free: 52.17 MB / 0.5261 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.0231/12.31, allocations: 7.038 MB / 3.972 GB, free: 51.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007751/12.32, allocations: 3.039 MB / 3.975 GB, free: 50.95 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/12.32, allocations: 5.031 kB / 3.975 GB, free: 50.95 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003047/12.32, allocations: 1.419 MB / 3.976 GB, free: 50.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005919/12.33, allocations: 0.6364 MB / 3.977 GB, free: 50.87 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/12.35, allocations: 4.945 MB / 3.981 GB, free: 49.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001443/12.35, allocations: 1.703 MB / 3.983 GB, free: 49.17 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00192/12.35, allocations: 0.8506 MB / 3.984 GB, free: 49.16 MB / 0.5261 GB Notification: Performance of SimCode: time 1.223e-06/12.35, allocations: 0 / 3.984 GB, free: 49.16 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.588/16.94, allocations: 78.68 MB / 4.061 GB, free: 44.53 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat