Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",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.002373/0.002373, allocations: 181.4 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.16/2.16, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00114/0.00114, allocations: 82.66 kB / 267.5 MB, free: 14.04 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.3003/0.3003, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.836e-05/3.847e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.291/8.427, allocations: 2.822 GB / 3.295 GB, free: 17.86 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/8.428, allocations: 75.16 kB / 3.295 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.317/12.74, allocations: 0.7445 GB / 4.039 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.023e-06/12.74, allocations: 3.844 kB / 4.039 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001887/12.74, allocations: 38.34 kB / 4.039 GB, free: 48.07 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01331/12.76, allocations: 2.753 MB / 4.042 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/12.76, allocations: 9.156 kB / 4.042 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006134/12.76, allocations: 152.4 kB / 4.042 GB, free: 46.67 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004932/12.76, allocations: 483.2 kB / 4.043 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004292/12.77, allocations: 1.129 MB / 4.044 GB, free: 46.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002628/12.77, allocations: 146.1 kB / 4.044 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005911/12.77, allocations: 110.5 kB / 4.044 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00618/12.78, allocations: 1.877 MB / 4.046 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.997e-05/12.78, allocations: 5.219 kB / 4.046 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002481/12.78, allocations: 47.47 kB / 4.046 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/12.78, allocations: 84.48 kB / 4.046 GB, free: 45.85 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006225/12.78, allocations: 1.706 MB / 4.048 GB, free: 45.84 MB / 0.5261 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.01933/12.8, allocations: 8.546 MB / 4.056 GB, free: 40.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004686/12.81, allocations: 1.38 MB / 4.057 GB, free: 39.82 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/12.81, allocations: 470.5 kB / 4.058 GB, free: 39.59 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2049/13.01, allocations: 63.48 MB / 4.12 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003654/13.02, allocations: 0.8949 MB / 4.121 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=82): time 4.598e-06/13.02, allocations: 0 / 4.121 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=86): time 0.01321/13.03, allocations: 3.748 MB / 4.124 GB, free: 8.375 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002606/13.03, allocations: 400 kB / 4.125 GB, free: 7.895 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/13.03, allocations: 0.9194 MB / 4.125 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003355/13.03, allocations: 45.7 kB / 4.126 GB, free: 6.984 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00055/13.03, allocations: 0.5731 MB / 4.126 GB, free: 6.445 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004754/13.03, allocations: 302.1 kB / 4.126 GB, free: 6.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/13.03, allocations: 28 kB / 4.126 GB, free: 6.152 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001961/13.03, allocations: 356.9 kB / 4.127 GB, free: 5.809 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/13.04, allocations: 477.5 kB / 4.127 GB, free: 5.367 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/13.04, allocations: 0.9488 MB / 4.128 GB, free: 4.266 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001729/13.04, allocations: 0.6196 MB / 4.129 GB, free: 3.727 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/13.04, allocations: 4 kB / 4.129 GB, free: 3.723 MB / 0.5417 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004921/13.04, allocations: 1.705 MB / 4.13 GB, free: 2.156 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.4187/13.46, allocations: 5.398 MB / 4.136 GB, free: 60.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-05/13.46, allocations: 17.27 kB / 4.136 GB, free: 60.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/13.47, allocations: 1.079 MB / 4.137 GB, free: 60.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/13.47, allocations: 248 kB / 4.137 GB, free: 60.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003189/13.48, allocations: 1.45 MB / 4.138 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002515/13.48, allocations: 126.6 kB / 4.139 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002533/13.48, allocations: 68.47 kB / 4.139 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/13.48, allocations: 4.875 kB / 4.139 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004838/13.49, allocations: 1.526 MB / 4.14 GB, free: 59.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.862e-05/13.49, allocations: 15.28 kB / 4.14 GB, free: 59.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001988/13.49, allocations: 336.6 kB / 4.14 GB, free: 59.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/13.49, allocations: 276.8 kB / 4.141 GB, free: 59.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/13.49, allocations: 1.017 MB / 4.142 GB, free: 59.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001946/13.49, allocations: 126.3 kB / 4.142 GB, free: 59.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001986/13.49, allocations: 69.33 kB / 4.142 GB, free: 59.38 MB / 0.5417 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005755/13.49, allocations: 203.8 kB / 4.142 GB, free: 59.27 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004005/13.49, allocations: 130.6 kB / 4.142 GB, free: 59.26 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008015/13.5, allocations: 3.969 MB / 4.146 GB, free: 59.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-05/13.5, allocations: 42.44 kB / 4.146 GB, free: 59.02 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/13.5, allocations: 3.094 kB / 4.146 GB, free: 59.02 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.129e-05/13.5, allocations: 5.109 kB / 4.146 GB, free: 59.02 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/13.52, allocations: 5.484 MB / 4.151 GB, free: 58.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.037e-05/13.52, allocations: 1.25 kB / 4.151 GB, free: 58.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/13.52, allocations: 178.3 kB / 4.152 GB, free: 58.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01196/13.53, allocations: 1.794 MB / 4.153 GB, free: 58.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003131/13.53, allocations: 26.17 kB / 4.153 GB, free: 58.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/13.53, allocations: 2.088 MB / 4.155 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/13.53, allocations: 4.031 kB / 4.155 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007412/13.54, allocations: 3.817 MB / 4.159 GB, free: 56.75 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/13.54, allocations: 0.5266 MB / 4.16 GB, free: 56.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004705/13.54, allocations: 23.44 kB / 4.16 GB, free: 56.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001882/13.54, allocations: 98.58 kB / 4.16 GB, free: 56.55 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/13.54, allocations: 80.84 kB / 4.16 GB, free: 56.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/13.54, allocations: 33.41 kB / 4.16 GB, free: 56.54 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002284/13.55, allocations: 1.039 MB / 4.161 GB, free: 56.43 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.02e-07/13.55, allocations: 0 / 4.161 GB, free: 56.43 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01039/13.56, allocations: 2.067 MB / 4.163 GB, free: 56.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02058/13.58, allocations: 6.603 MB / 4.169 GB, free: 54.77 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006388/13.58, allocations: 2.267 MB / 4.172 GB, free: 54.73 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/13.58, allocations: 0 / 4.172 GB, free: 54.73 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002169/13.59, allocations: 0.9863 MB / 4.173 GB, free: 54.72 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005776/13.59, allocations: 0.6311 MB / 4.173 GB, free: 54.71 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/13.61, allocations: 3.83 MB / 4.177 GB, free: 53.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/13.61, allocations: 1.469 MB / 4.178 GB, free: 53.17 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/13.61, allocations: 0.7212 MB / 4.179 GB, free: 53.16 MB / 0.5417 GB Notification: Performance of SimCode: time 2.094e-06/13.61, allocations: 1.875 kB / 4.179 GB, free: 53.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.559/18.17, allocations: 67 MB / 4.244 GB, free: 49.45 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat