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.002213/0.002213, allocations: 180.1 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.264/2.264, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001154/0.001153, allocations: 81.7 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3074/0.3074, allocations: 43.5 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.512e-05/2.49e-05, allocations: 4 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4346/0.4346, allocations: 58.84 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.739/9.174, allocations: 2.821 GB / 3.287 GB, free: 103.9 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/9.174, allocations: 83.2 kB / 3.287 GB, free: 103.9 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.658/12.83, allocations: 0.7376 GB / 4.025 GB, free: 10.61 MB / 0.5265 GB Notification: Performance of FrontEnd: time 1.854e-06/12.83, allocations: 0 / 4.025 GB, free: 10.61 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.000185/12.83, allocations: 31.67 kB / 4.025 GB, free: 10.58 MB / 0.5265 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.01411/12.85, allocations: 2.758 MB / 4.027 GB, free: 7.785 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/12.85, allocations: 12.03 kB / 4.027 GB, free: 7.773 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005205/12.85, allocations: 476 kB / 4.028 GB, free: 7.309 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004855/12.86, allocations: 1.13 MB / 4.029 GB, free: 6.156 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002518/12.86, allocations: 110.1 kB / 4.029 GB, free: 6.035 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004701/12.86, allocations: 55.94 kB / 4.029 GB, free: 5.98 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004536/12.86, allocations: 1.347 MB / 4.03 GB, free: 4.633 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004883/12.87, allocations: 1.467 MB / 4.032 GB, free: 3.051 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.719e-05/12.87, allocations: 7.938 kB / 4.032 GB, free: 3.043 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000224/12.87, allocations: 4 kB / 4.032 GB, free: 3.039 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001977/12.87, allocations: 73.97 kB / 4.032 GB, free: 2.969 MB / 0.5265 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.8449/13.71, allocations: 135.2 MB / 4.164 GB, free: 17.21 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/13.72, allocations: 0.9264 MB / 4.165 GB, free: 16.99 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009065/13.72, allocations: 374.6 kB / 4.165 GB, free: 16.98 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05354/13.77, allocations: 16.69 MB / 4.182 GB, free: 22.2 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/13.77, allocations: 0.4973 MB / 4.182 GB, free: 22.09 MB / 0.589 GB Notification: Performance of pre-optimization done (n=66): time 3.857e-06/13.77, allocations: 0 / 4.182 GB, free: 22.09 MB / 0.589 GB Notification: Performance of matching and sorting (n=70): time 0.01397/13.79, allocations: 3.125 MB / 4.185 GB, free: 21.36 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002071/13.79, allocations: 345.4 kB / 4.185 GB, free: 20.95 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001903/13.79, allocations: 0.8406 MB / 4.186 GB, free: 20.8 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0003241/13.79, allocations: 25.7 kB / 4.186 GB, free: 20.77 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006588/13.79, allocations: 0.6405 MB / 4.187 GB, free: 20.44 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004309/13.79, allocations: 244.1 kB / 4.187 GB, free: 20.32 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/13.79, allocations: 1.406 kB / 4.187 GB, free: 20.32 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0001881/13.79, allocations: 365.2 kB / 4.187 GB, free: 20 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/13.79, allocations: 461.7 kB / 4.188 GB, free: 20 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/13.79, allocations: 0.9216 MB / 4.189 GB, free: 19.43 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01258/13.81, allocations: 1.654 MB / 4.19 GB, free: 19.39 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.107e-05/13.81, allocations: 6.875 kB / 4.19 GB, free: 19.38 MB / 0.589 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01555/13.82, allocations: 2.629 MB / 4.193 GB, free: 19.27 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.002235/13.82, allocations: 5.397 MB / 4.198 GB, free: 13.61 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-05/13.82, allocations: 15.28 kB / 4.198 GB, free: 13.61 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005614/13.83, allocations: 0.7088 MB / 4.199 GB, free: 13.58 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/13.83, allocations: 252.8 kB / 4.199 GB, free: 13.57 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/13.83, allocations: 1.616 MB / 4.201 GB, free: 13.03 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/13.84, allocations: 122.7 kB / 4.201 GB, free: 13.02 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003594/13.84, allocations: 72.86 kB / 4.201 GB, free: 13.02 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/13.84, allocations: 9.547 kB / 4.201 GB, free: 13.01 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0145/13.85, allocations: 2.324 MB / 4.203 GB, free: 12.96 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.456e-05/13.85, allocations: 14.12 kB / 4.203 GB, free: 12.96 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001811/13.85, allocations: 331.2 kB / 4.204 GB, free: 12.94 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/13.86, allocations: 282.1 kB / 4.204 GB, free: 12.94 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/13.86, allocations: 1.029 MB / 4.205 GB, free: 12.41 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/13.86, allocations: 109.9 kB / 4.205 GB, free: 12.39 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/13.86, allocations: 64.19 kB / 4.205 GB, free: 12.39 MB / 0.589 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 ($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,source.medium.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.00057/13.86, allocations: 169.6 kB / 4.205 GB, free: 12.29 MB / 0.589 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004083/13.87, allocations: 1.044 MB / 4.206 GB, free: 12.17 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000342/13.87, allocations: 107.9 kB / 4.206 GB, free: 12.11 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006071/13.87, allocations: 2.899 MB / 4.209 GB, free: 11.88 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.544e-05/13.87, allocations: 34.97 kB / 4.209 GB, free: 11.88 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/13.87, allocations: 4.641 kB / 4.209 GB, free: 11.88 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/13.87, allocations: 7.266 kB / 4.209 GB, free: 11.88 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008976/13.88, allocations: 4.568 MB / 4.214 GB, free: 11.19 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/13.88, allocations: 4.062 kB / 4.214 GB, free: 11.19 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009761/13.88, allocations: 133.1 kB / 4.214 GB, free: 11.18 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007865/13.89, allocations: 1.523 MB / 4.215 GB, free: 11.11 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002266/13.89, allocations: 21.12 kB / 4.215 GB, free: 11.11 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003536/13.89, allocations: 2.267 MB / 4.218 GB, free: 26.04 MB / 0.6046 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/13.89, allocations: 3.125 kB / 4.218 GB, free: 26.04 MB / 0.6046 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006514/13.9, allocations: 3.322 MB / 4.221 GB, free: 25.64 MB / 0.6046 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/13.9, allocations: 350.9 kB / 4.221 GB, free: 25.47 MB / 0.6046 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/13.9, allocations: 3.906 kB / 4.221 GB, free: 25.47 MB / 0.6046 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/13.9, allocations: 75.38 kB / 4.221 GB, free: 25.46 MB / 0.6046 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/13.9, allocations: 61.55 kB / 4.221 GB, free: 25.45 MB / 0.6046 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-05/13.9, allocations: 29.05 kB / 4.221 GB, free: 25.45 MB / 0.6046 GB Notification: Performance of sorting global known variables: time 0.00123/13.9, allocations: 0.6032 MB / 4.222 GB, free: 25.34 MB / 0.6046 GB Notification: Performance of sort global known variables: time 4.11e-07/13.9, allocations: 0 / 4.222 GB, free: 25.34 MB / 0.6046 GB Notification: Performance of remove unused functions: time 0.009504/13.91, allocations: 1.929 MB / 4.224 GB, free: 25.34 MB / 0.6046 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01972/13.93, allocations: 6.075 MB / 4.23 GB, free: 23.91 MB / 0.6046 GB Notification: Performance of simCode: created initialization part: time 0.005636/13.94, allocations: 2.054 MB / 4.232 GB, free: 23.06 MB / 0.6046 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/13.94, allocations: 0.6875 kB / 4.232 GB, free: 23.06 MB / 0.6046 GB Notification: Performance of simCode: created simulation system equations: time 0.001699/13.94, allocations: 0.8133 MB / 4.232 GB, free: 22.66 MB / 0.6046 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004215/13.95, allocations: 463.6 kB / 4.233 GB, free: 22.41 MB / 0.6046 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/13.96, allocations: 3.234 MB / 4.236 GB, free: 20.18 MB / 0.6046 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/13.96, allocations: 1.33 MB / 4.237 GB, free: 19.09 MB / 0.6046 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/13.96, allocations: 0.5697 MB / 4.238 GB, free: 19 MB / 0.6046 GB Notification: Performance of SimCode: time 1.463e-06/13.96, allocations: 0 / 4.238 GB, free: 19 MB / 0.6046 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.845/18.8, allocations: 61.92 MB / 4.298 GB, free: 127.6 MB / 0.6046 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