Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.002337/0.002337, allocations: 185.3 kB / 16.41 MB, free: 5.727 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.532/2.532, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001215/0.001215, allocations: 92.42 kB / 270.9 MB, free: 8.387 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.5367/0.5367, allocations: 43.56 MB / 362.7 MB, free: 52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000512/0.0005119, allocations: 15.98 kB / 431.5 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1392, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.106/9.245, allocations: 2.833 GB / 3.312 GB, free: 51.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/9.246, allocations: 79.03 kB / 3.312 GB, free: 51.06 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.884/12.13, allocations: 0.4925 GB / 3.805 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.635e-06/12.13, allocations: 0 / 3.805 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002275/12.13, allocations: 44.39 kB / 3.805 GB, free: 58.04 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01709/12.15, allocations: 3.198 MB / 3.808 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/12.15, allocations: 10.69 kB / 3.808 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001587/12.15, allocations: 281.4 kB / 3.808 GB, free: 56.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008256/12.16, allocations: 0.7068 MB / 3.809 GB, free: 56.74 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007324/12.16, allocations: 1.583 MB / 3.81 GB, free: 56.38 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003262/12.17, allocations: 166.4 kB / 3.81 GB, free: 56.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00114/12.17, allocations: 181.7 kB / 3.811 GB, free: 56.37 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/12.18, allocations: 3.582 MB / 3.814 GB, free: 55.92 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.226e-05/12.18, allocations: 4.688 kB / 3.814 GB, free: 55.92 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004894/12.18, allocations: 79.31 kB / 3.814 GB, free: 55.92 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002515/12.18, allocations: 174.6 kB / 3.814 GB, free: 55.91 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01376/12.19, allocations: 3.517 MB / 3.818 GB, free: 55.9 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.03326/12.23, allocations: 14.11 MB / 3.832 GB, free: 48.16 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009903/12.24, allocations: 2.288 MB / 3.834 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2093/12.45, allocations: 63.43 MB / 3.896 GB, free: 40.39 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007177/12.45, allocations: 1.724 MB / 3.897 GB, free: 40.25 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=154): time 6.863e-06/12.45, allocations: 9.812 kB / 3.897 GB, free: 40.25 MB / 0.5574 GB Notification: Performance of matching and sorting (n=174): time 0.039/12.49, allocations: 9.442 MB / 3.907 GB, free: 38.59 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001859/12.49, allocations: 291.4 kB / 3.907 GB, free: 38.27 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002638/12.5, allocations: 1.19 MB / 3.908 GB, free: 38.11 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0006704/12.5, allocations: 58.2 kB / 3.908 GB, free: 38.07 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008288/12.5, allocations: 0.8091 MB / 3.909 GB, free: 37.61 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.001019/12.5, allocations: 0.6014 MB / 3.91 GB, free: 37.23 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003264/12.5, allocations: 40.69 kB / 3.91 GB, free: 37.23 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002434/12.5, allocations: 397.3 kB / 3.91 GB, free: 36.92 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004337/12.5, allocations: 1.283 MB / 3.911 GB, free: 36.91 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004967/12.51, allocations: 1.83 MB / 3.913 GB, free: 36.26 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00493/12.51, allocations: 1.513 MB / 3.914 GB, free: 36.21 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.363e-05/12.51, allocations: 11.73 kB / 3.914 GB, free: 36.21 MB / 0.5574 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01453/12.53, allocations: 4.255 MB / 3.919 GB, free: 36.05 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.002594/12.53, allocations: 6.272 MB / 3.925 GB, free: 29.47 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.814e-05/12.53, allocations: 15.31 kB / 3.925 GB, free: 29.47 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02851/12.56, allocations: 3.672 MB / 3.928 GB, free: 29.36 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/12.56, allocations: 333.4 kB / 3.929 GB, free: 29.36 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/12.57, allocations: 4.053 MB / 3.933 GB, free: 28.76 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004375/12.58, allocations: 274.7 kB / 3.933 GB, free: 28.73 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006978/12.58, allocations: 109 kB / 3.933 GB, free: 28.73 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/12.58, allocations: 6.531 kB / 3.933 GB, free: 28.73 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01425/12.59, allocations: 3.937 MB / 3.937 GB, free: 28.1 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.273e-05/12.59, allocations: 14.5 kB / 3.937 GB, free: 28.1 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01605/12.61, allocations: 2.354 MB / 3.939 GB, free: 27.7 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/12.61, allocations: 365.1 kB / 3.94 GB, free: 27.68 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008803/12.62, allocations: 3.338 MB / 3.943 GB, free: 26.23 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003548/12.63, allocations: 264.4 kB / 3.943 GB, free: 26.16 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004887/12.63, allocations: 105.3 kB / 3.943 GB, free: 26.14 MB / 0.5574 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.002237/12.63, allocations: 0.7021 MB / 3.944 GB, free: 25.73 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000565/12.63, allocations: 169.3 kB / 3.944 GB, free: 25.65 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/12.64, allocations: 6.853 MB / 3.951 GB, free: 22.82 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.691e-05/12.64, allocations: 76.75 kB / 3.951 GB, free: 22.8 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/12.64, allocations: 0 / 3.951 GB, free: 22.8 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01233/12.66, allocations: 5.5 MB / 3.956 GB, free: 20.34 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02238/12.68, allocations: 9.572 MB / 3.965 GB, free: 13.49 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.27e-05/12.68, allocations: 4 kB / 3.965 GB, free: 13.48 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00388/12.68, allocations: 443.8 kB / 3.966 GB, free: 13.15 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003037/12.69, allocations: 483.3 kB / 3.966 GB, free: 12.79 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006686/12.69, allocations: 62.45 kB / 3.966 GB, free: 12.73 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002839/12.69, allocations: 3.22 MB / 3.97 GB, free: 9.531 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/12.69, allocations: 0 / 3.97 GB, free: 9.531 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01807/12.71, allocations: 7.13 MB / 3.977 GB, free: 3.172 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002796/12.71, allocations: 0.7691 MB / 3.977 GB, free: 2.5 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009126/12.71, allocations: 54.52 kB / 3.977 GB, free: 2.453 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003691/12.72, allocations: 208.1 kB / 3.978 GB, free: 2.297 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009102/12.72, allocations: 182.4 kB / 3.978 GB, free: 2.195 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002878/12.72, allocations: 67.59 kB / 3.978 GB, free: 2.137 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003245/12.72, allocations: 1.242 MB / 3.979 GB, free: 1.094 MB / 0.5574 GB Notification: Performance of sort global known variables: time 6.11e-07/12.72, allocations: 0 / 3.979 GB, free: 1.094 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.4391/13.16, allocations: 2.358 MB / 3.981 GB, free: 86.7 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03567/13.2, allocations: 9.933 MB / 3.991 GB, free: 85.42 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01842/13.21, allocations: 5.486 MB / 3.996 GB, free: 85.31 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/13.21, allocations: 3.281 kB / 3.996 GB, free: 85.31 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.006265/13.22, allocations: 2.368 MB / 3.999 GB, free: 85.3 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007299/13.23, allocations: 0.7916 MB / 3.999 GB, free: 85.28 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02862/13.26, allocations: 21.28 MB / 4.02 GB, free: 70.33 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002232/13.26, allocations: 2.053 MB / 4.022 GB, free: 69.59 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00275/13.26, allocations: 1.152 MB / 4.023 GB, free: 69.58 MB / 0.5574 GB Notification: Performance of SimCode: time 1.303e-06/13.26, allocations: 0.7656 kB / 4.023 GB, free: 69.58 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.069/18.33, allocations: 97.52 MB / 4.119 GB, free: 64.37 MB / 0.5574 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat