Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.002153/0.002159, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.102/2.102, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001274/0.001274, allocations: 101.8 kB / 270.9 MB, free: 8.359 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.6053/0.6053, allocations: 43.55 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004653/0.000465, allocations: 12 kB / 431.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1336, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.938/9.071, allocations: 2.826 GB / 3.305 GB, free: 90.54 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/9.072, allocations: 82.36 kB / 3.305 GB, free: 90.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.567/13.64, allocations: 0.8702 GB / 4.175 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.054e-06/13.64, allocations: 0 / 4.175 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003117/13.64, allocations: 54.34 kB / 4.175 GB, free: 19.19 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01966/13.66, allocations: 4.098 MB / 4.179 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/13.66, allocations: 12.03 kB / 4.179 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001457/13.66, allocations: 275.8 kB / 4.179 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008473/13.67, allocations: 0.7883 MB / 4.18 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00815/13.68, allocations: 1.955 MB / 4.182 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/13.68, allocations: 168.2 kB / 4.182 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000951/13.68, allocations: 188.7 kB / 4.182 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/13.69, allocations: 3.307 MB / 4.186 GB, free: 8.238 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.47e-05/13.69, allocations: 7.938 kB / 4.186 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000412/13.69, allocations: 84.44 kB / 4.186 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002761/13.69, allocations: 143.3 kB / 4.186 GB, free: 8.016 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01192/13.7, allocations: 3.034 MB / 4.189 GB, free: 4.977 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.03291/13.74, allocations: 14.23 MB / 4.203 GB, free: 5.648 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009103/13.75, allocations: 2.074 MB / 4.205 GB, free: 3.578 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5462/14.29, allocations: 24.51 MB / 4.229 GB, free: 28.01 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006561/14.3, allocations: 1.582 MB / 4.23 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001726/14.3, allocations: 174.2 kB / 4.23 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=146): time 6.162e-06/14.3, allocations: 0 / 4.23 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=158): time 0.03665/14.34, allocations: 8.399 MB / 4.239 GB, free: 26.85 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/14.34, allocations: 259.9 kB / 4.239 GB, free: 26.57 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003172/14.34, allocations: 1.411 MB / 4.24 GB, free: 26.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005647/14.34, allocations: 54.36 kB / 4.24 GB, free: 26.37 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008741/14.34, allocations: 0.823 MB / 4.241 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009165/14.34, allocations: 0.5263 MB / 4.242 GB, free: 25.78 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/14.34, allocations: 38.38 kB / 4.242 GB, free: 25.78 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001481/14.34, allocations: 384.8 kB / 4.242 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003403/14.35, allocations: 1.029 MB / 4.243 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003845/14.35, allocations: 1.412 MB / 4.244 GB, free: 25.08 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004004/14.35, allocations: 1.248 MB / 4.246 GB, free: 25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/14.35, allocations: 8.469 kB / 4.246 GB, free: 25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01087/14.36, allocations: 3.083 MB / 4.249 GB, free: 24.79 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009503/14.37, allocations: 3.729 MB / 4.252 GB, free: 20.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-05/14.37, allocations: 10.59 kB / 4.252 GB, free: 20.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005314/14.37, allocations: 0.6117 MB / 4.253 GB, free: 20.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003861/14.38, allocations: 435.8 kB / 4.253 GB, free: 20.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003277/14.38, allocations: 2.826 MB / 4.256 GB, free: 18.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004118/14.38, allocations: 234.5 kB / 4.256 GB, free: 18.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000671/14.38, allocations: 96.42 kB / 4.256 GB, free: 18.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/14.38, allocations: 8.016 kB / 4.256 GB, free: 18.79 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009803/14.39, allocations: 2.806 MB / 4.259 GB, free: 18.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-05/14.39, allocations: 11.28 kB / 4.259 GB, free: 18.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/14.39, allocations: 206.4 kB / 4.259 GB, free: 18.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00379/14.4, allocations: 457.2 kB / 4.26 GB, free: 18.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/14.4, allocations: 1.87 MB / 4.262 GB, free: 17.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/14.4, allocations: 237.1 kB / 4.262 GB, free: 17.08 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003802/14.4, allocations: 89.31 kB / 4.262 GB, free: 17.08 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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,pipe3.state_b.phase,pipe2.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 (201): * Single equations (assignments): 195 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.002223/14.41, allocations: 0.7103 MB / 4.263 GB, free: 16.82 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007439/14.41, allocations: 202.3 kB / 4.263 GB, free: 16.72 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01961/14.43, allocations: 7.551 MB / 4.27 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001168/14.43, allocations: 79.45 kB / 4.27 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/14.43, allocations: 0.875 kB / 4.27 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01466/14.44, allocations: 6.622 MB / 4.277 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02394/14.46, allocations: 10.52 MB / 4.287 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/14.46, allocations: 0 / 4.287 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002863/14.47, allocations: 340.7 kB / 4.287 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005221/14.47, allocations: 1.361 MB / 4.289 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005511/14.47, allocations: 55.25 kB / 4.289 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003486/14.48, allocations: 3.483 MB / 4.292 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/14.48, allocations: 0 / 4.292 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01671/14.49, allocations: 7.376 MB / 4.299 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002485/14.5, allocations: 0.7413 MB / 4.3 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008906/14.5, allocations: 45.78 kB / 4.3 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003302/14.5, allocations: 193 kB / 4.3 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005777/14.5, allocations: 136.9 kB / 4.3 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000263/14.5, allocations: 68.34 kB / 4.3 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003151/14.5, allocations: 1.279 MB / 4.302 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.022e-06/14.5, allocations: 1.781 kB / 4.302 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01322/14.52, allocations: 2.731 MB / 4.304 GB, free: 11.29 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,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($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,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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 (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03293/14.55, allocations: 10.2 MB / 4.314 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01479/14.57, allocations: 4.857 MB / 4.319 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/14.57, allocations: 3.562 kB / 4.319 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005664/14.57, allocations: 2.314 MB / 4.321 GB, free: 25.53 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009395/14.58, allocations: 0.9687 MB / 4.322 GB, free: 25.51 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02958/14.61, allocations: 16.72 MB / 4.339 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/14.61, allocations: 2.14 MB / 4.341 GB, free: 14.26 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002697/14.62, allocations: 1.228 MB / 4.342 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of SimCode: time 1.292e-06/14.62, allocations: 0 / 4.342 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.619/20.23, allocations: 122.5 MB / 4.461 GB, free: 71.61 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat