Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.001605/0.001605, allocations: 185.9 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.191/2.191, 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.00119/0.00119, allocations: 92.38 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.5181/0.5181, allocations: 43.55 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005425/0.0005427, allocations: 12 kB / 431.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1393, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.893/9.032, allocations: 2.847 GB / 3.326 GB, free: 38.21 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/9.033, allocations: 84.31 kB / 3.326 GB, free: 38.17 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.681/14.71, allocations: 1.017 GB / 4.343 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.595e-06/14.71, allocations: 0 / 4.343 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003779/14.71, allocations: 78.84 kB / 4.343 GB, free: 29.42 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02344/14.74, allocations: 4.56 MB / 4.347 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/14.74, allocations: 7.812 kB / 4.347 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00194/14.74, allocations: 324.9 kB / 4.347 GB, free: 26.83 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/14.75, allocations: 0.9385 MB / 4.348 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009128/14.76, allocations: 2.221 MB / 4.35 GB, free: 25.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/14.76, allocations: 196.1 kB / 4.351 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/14.76, allocations: 224.3 kB / 4.351 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01386/14.77, allocations: 3.926 MB / 4.355 GB, free: 23.8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001042/14.78, allocations: 5.969 kB / 4.355 GB, free: 23.8 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004676/14.78, allocations: 94.14 kB / 4.355 GB, free: 23.74 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003169/14.78, allocations: 177.9 kB / 4.355 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/14.79, allocations: 3.618 MB / 4.358 GB, free: 22.63 MB / 0.5417 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.04179/14.83, allocations: 16.96 MB / 4.375 GB, free: 9.855 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/14.84, allocations: 3.2 MB / 4.378 GB, free: 8.492 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08224/14.93, allocations: 24.33 MB / 4.402 GB, free: 0.7422 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4988/15.43, allocations: 2.032 MB / 4.404 GB, free: 48.94 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=192): time 6.723e-06/15.43, allocations: 0 / 4.404 GB, free: 48.94 MB / 0.5574 GB Notification: Performance of matching and sorting (n=212): time 0.05521/15.48, allocations: 10.53 MB / 4.414 GB, free: 47.94 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/15.48, allocations: 257.1 kB / 4.414 GB, free: 47.66 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003989/15.49, allocations: 1.525 MB / 4.416 GB, free: 47.45 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.000798/15.49, allocations: 69.48 kB / 4.416 GB, free: 47.41 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.001497/15.49, allocations: 0.9592 MB / 4.417 GB, free: 47.04 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.00161/15.49, allocations: 0.7084 MB / 4.418 GB, free: 46.69 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006354/15.49, allocations: 46.69 kB / 4.418 GB, free: 46.69 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0003192/15.49, allocations: 404.3 kB / 4.418 GB, free: 46.38 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004941/15.5, allocations: 1.294 MB / 4.419 GB, free: 46.37 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005629/15.5, allocations: 1.806 MB / 4.421 GB, free: 45.86 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005553/15.51, allocations: 1.541 MB / 4.423 GB, free: 45.78 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.283e-05/15.51, allocations: 2.531 kB / 4.423 GB, free: 45.78 MB / 0.5574 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01459/15.52, allocations: 3.687 MB / 4.426 GB, free: 45.55 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.001197/15.52, allocations: 4.944 MB / 4.431 GB, free: 40.41 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.429e-05/15.52, allocations: 18.14 kB / 4.431 GB, free: 40.4 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002281/15.52, allocations: 353.3 kB / 4.431 GB, free: 40.36 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005438/15.53, allocations: 0.5946 MB / 4.432 GB, free: 40.36 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/15.53, allocations: 3.095 MB / 4.435 GB, free: 37.77 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005687/15.54, allocations: 345 kB / 4.435 GB, free: 37.76 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00102/15.54, allocations: 119.5 kB / 4.435 GB, free: 37.76 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/15.54, allocations: 5.969 kB / 4.435 GB, free: 37.76 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01434/15.55, allocations: 3.525 MB / 4.439 GB, free: 37.61 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.271e-05/15.55, allocations: 20.08 kB / 4.439 GB, free: 37.61 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001969/15.56, allocations: 347.4 kB / 4.439 GB, free: 37.57 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00509/15.56, allocations: 0.5893 MB / 4.44 GB, free: 37.57 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/15.56, allocations: 3.098 MB / 4.443 GB, free: 34.98 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004493/15.57, allocations: 338.1 kB / 4.443 GB, free: 34.97 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008776/15.57, allocations: 118.7 kB / 4.443 GB, free: 34.97 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002879/15.57, allocations: 0.7848 MB / 4.444 GB, free: 34.71 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009427/15.57, allocations: 235.3 kB / 4.444 GB, free: 34.6 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0233/15.6, allocations: 8.353 MB / 4.452 GB, free: 33.9 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/15.6, allocations: 90.66 kB / 4.452 GB, free: 33.9 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/15.6, allocations: 0 / 4.452 GB, free: 33.9 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01847/15.62, allocations: 7.26 MB / 4.46 GB, free: 32.96 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03634/15.65, allocations: 13.39 MB / 4.473 GB, free: 31.36 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.522e-05/15.65, allocations: 3.344 kB / 4.473 GB, free: 31.36 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003986/15.66, allocations: 493.8 kB / 4.473 GB, free: 31.36 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002948/15.66, allocations: 484 kB / 4.474 GB, free: 31.31 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006641/15.66, allocations: 78.73 kB / 4.474 GB, free: 31.31 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002495/15.66, allocations: 3.237 MB / 4.477 GB, free: 28.71 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/15.66, allocations: 5.062 kB / 4.477 GB, free: 28.71 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02087/15.68, allocations: 8.646 MB / 4.485 GB, free: 27.28 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003064/15.69, allocations: 0.8284 MB / 4.486 GB, free: 26.93 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/15.69, allocations: 66.55 kB / 4.486 GB, free: 26.93 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003963/15.69, allocations: 238.1 kB / 4.486 GB, free: 26.92 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007306/15.69, allocations: 203.6 kB / 4.487 GB, free: 26.91 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003376/15.69, allocations: 93.55 kB / 4.487 GB, free: 26.91 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003056/15.7, allocations: 1.354 MB / 4.488 GB, free: 26.77 MB / 0.5574 GB Notification: Performance of sort global known variables: time 7.01e-07/15.7, allocations: 0 / 4.488 GB, free: 26.77 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01455/15.71, allocations: 2.953 MB / 4.491 GB, free: 26.65 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * 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,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03599/15.75, allocations: 13.47 MB / 4.504 GB, free: 23.18 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01887/15.76, allocations: 5.972 MB / 4.51 GB, free: 22.84 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.847e-05/15.77, allocations: 3.281 kB / 4.51 GB, free: 22.84 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.007945/15.77, allocations: 3.054 MB / 4.513 GB, free: 22.69 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01099/15.78, allocations: 1.221 MB / 4.514 GB, free: 22.66 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03339/15.82, allocations: 20.8 MB / 4.534 GB, free: 9.051 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003317/15.82, allocations: 2.336 MB / 4.537 GB, free: 8.301 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003659/15.82, allocations: 1.459 MB / 4.538 GB, free: 8.293 MB / 0.5574 GB Notification: Performance of SimCode: time 1.643e-06/15.82, allocations: 1.641 kB / 4.538 GB, free: 8.293 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.009/21.83, allocations: 151.6 MB / 4.686 GB, free: 61.6 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat