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.00237/0.002376, allocations: 181.1 kB / 16.4 MB, free: 5.723 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.307/2.307, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001249/0.001249, allocations: 88.41 kB / 270.9 MB, free: 8.363 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.5185/0.5185, allocations: 43.56 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004806/0.0004809, allocations: 16 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1344, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.76/8.894, allocations: 2.825 GB / 3.304 GB, free: 59.52 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/8.895, allocations: 82.97 kB / 3.304 GB, free: 59.48 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.249/12.14, allocations: 0.5782 GB / 3.882 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.535e-06/12.14, allocations: 3.781 kB / 3.882 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002228/12.14, allocations: 47.25 kB / 3.882 GB, free: 36.34 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.01576/12.16, allocations: 3.051 MB / 3.885 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.428e-05/12.16, allocations: 14.81 kB / 3.885 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001285/12.16, allocations: 194.2 kB / 3.885 GB, free: 34.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01098/12.17, allocations: 0.5426 MB / 3.886 GB, free: 34.38 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008403/12.18, allocations: 1.44 MB / 3.887 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003487/12.18, allocations: 114.9 kB / 3.887 GB, free: 33.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009332/12.18, allocations: 133.8 kB / 3.887 GB, free: 33.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/12.19, allocations: 2.285 MB / 3.89 GB, free: 32.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.35e-05/12.19, allocations: 7.906 kB / 3.89 GB, free: 32.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004282/12.2, allocations: 61.78 kB / 3.89 GB, free: 32.59 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002793/12.2, allocations: 93.34 kB / 3.89 GB, free: 32.58 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/12.21, allocations: 2.069 MB / 3.892 GB, free: 31.98 MB / 0.5105 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.03138/12.24, allocations: 9.799 MB / 3.901 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009024/12.25, allocations: 1.419 MB / 3.903 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09716/12.35, allocations: 24.43 MB / 3.927 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004268/12.35, allocations: 1.066 MB / 3.928 GB, free: 23.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 3.888e-06/12.35, allocations: 0 / 3.928 GB, free: 23.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.02196/12.37, allocations: 5.308 MB / 3.933 GB, free: 21.78 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001959/12.37, allocations: 272.1 kB / 3.933 GB, free: 21.47 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002235/12.37, allocations: 1.031 MB / 3.934 GB, free: 21.07 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003714/12.38, allocations: 49.11 kB / 3.934 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005883/12.38, allocations: 0.6113 MB / 3.935 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004566/12.38, allocations: 358.6 kB / 3.935 GB, free: 20.22 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/12.38, allocations: 23.97 kB / 3.935 GB, free: 20.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002111/12.38, allocations: 358.2 kB / 3.935 GB, free: 19.87 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002221/12.38, allocations: 0.7008 MB / 3.936 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002938/12.38, allocations: 0.9923 MB / 3.937 GB, free: 19.07 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004173/12.39, allocations: 0.8294 MB / 3.938 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/12.39, allocations: 3.812 kB / 3.938 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.008857/12.4, allocations: 1.96 MB / 3.94 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001245/12.4, allocations: 2.735 MB / 3.943 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-05/12.4, allocations: 7.5 kB / 3.943 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008192/12.4, allocations: 137.2 kB / 3.943 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002536/12.4, allocations: 316.7 kB / 3.943 GB, free: 15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/12.4, allocations: 1.256 MB / 3.944 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/12.4, allocations: 154 kB / 3.944 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/12.4, allocations: 60.56 kB / 3.944 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/12.4, allocations: 5.125 kB / 3.944 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005512/12.41, allocations: 1.865 MB / 3.946 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/12.41, allocations: 11.56 kB / 3.946 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007091/12.41, allocations: 139.6 kB / 3.946 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/12.41, allocations: 316 kB / 3.947 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/12.41, allocations: 1.25 MB / 3.948 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/12.42, allocations: 162 kB / 3.948 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/12.42, allocations: 58.7 kB / 3.948 GB, free: 11.88 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 () * 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.001319/12.42, allocations: 0.5438 MB / 3.949 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004086/12.42, allocations: 139.6 kB / 3.949 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009057/12.43, allocations: 4.816 MB / 3.953 GB, free: 7.762 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.738e-05/12.43, allocations: 53.94 kB / 3.954 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/12.43, allocations: 1.875 kB / 3.954 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007377/12.43, allocations: 4.039 MB / 3.957 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01633/12.45, allocations: 6.88 MB / 3.964 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/12.45, allocations: 0 / 3.964 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002246/12.45, allocations: 253.8 kB / 3.964 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/12.45, allocations: 190.2 kB / 3.965 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003242/12.45, allocations: 39.89 kB / 3.965 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/12.46, allocations: 1.285 MB / 3.966 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/12.46, allocations: 4.031 kB / 3.966 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/12.47, allocations: 4.442 MB / 3.97 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/12.47, allocations: 0.5537 MB / 3.971 GB, free: 7.965 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005107/12.47, allocations: 35.75 kB / 3.971 GB, free: 7.934 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/12.47, allocations: 133.8 kB / 3.971 GB, free: 7.828 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003919/12.47, allocations: 96.5 kB / 3.971 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000186/12.47, allocations: 44.62 kB / 3.971 GB, free: 7.734 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002524/12.47, allocations: 0.9958 MB / 3.972 GB, free: 6.898 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.51e-07/12.47, allocations: 0 / 3.972 GB, free: 6.898 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01118/12.49, allocations: 2.211 MB / 3.974 GB, free: 4.738 MB / 0.5417 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.4498/12.94, allocations: 7.32 MB / 3.981 GB, free: 68.18 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01025/12.95, allocations: 3.234 MB / 3.985 GB, free: 67.97 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/12.95, allocations: 2.062 kB / 3.985 GB, free: 67.97 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003473/12.95, allocations: 1.49 MB / 3.986 GB, free: 67.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005348/12.96, allocations: 0.6332 MB / 3.987 GB, free: 67.89 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01831/12.97, allocations: 12.12 MB / 3.998 GB, free: 60.46 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001417/12.98, allocations: 1.699 MB / 4 GB, free: 59.73 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001807/12.98, allocations: 0.8578 MB / 4.001 GB, free: 59.73 MB / 0.5417 GB Notification: Performance of SimCode: time 1.272e-06/12.98, allocations: 3.969 kB / 4.001 GB, free: 59.73 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.803/17.78, allocations: 76.93 MB / 4.076 GB, free: 54.99 MB / 0.5417 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