Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_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.001937/0.001937, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.005/2.005, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.001046/0.001046, allocations: 92.41 kB / 267.1 MB, free: 9.266 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.5441/0.5441, allocations: 43.47 MB / 358.6 MB, free: 51.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.693e-05/5.732e-05, allocations: 0 / 425.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1815, allocations: 58.84 MB / 484.2 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.657/8.839, allocations: 2.847 GB / 3.32 GB, free: 97.35 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/8.839, allocations: 80.33 kB / 3.32 GB, free: 97.35 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.884/12.72, allocations: 1.014 GB / 4.334 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.633e-06/12.72, allocations: 2.5 kB / 4.334 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003488/12.72, allocations: 66.45 kB / 4.334 GB, free: 31.79 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.01821/12.74, allocations: 4.255 MB / 4.338 GB, free: 29.96 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/12.74, allocations: 11.53 kB / 4.338 GB, free: 29.96 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001775/12.74, allocations: 318.8 kB / 4.338 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007752/12.75, allocations: 0.9359 MB / 4.339 GB, free: 29.75 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007413/12.76, allocations: 2.204 MB / 4.341 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/12.76, allocations: 198.3 kB / 4.342 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/12.76, allocations: 228.5 kB / 4.342 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00987/12.77, allocations: 3.894 MB / 4.346 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-05/12.77, allocations: 12.7 kB / 4.346 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005558/12.77, allocations: 100.3 kB / 4.346 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002124/12.77, allocations: 166.5 kB / 4.346 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007248/12.78, allocations: 3.453 MB / 4.349 GB, free: 28.62 MB / 0.5417 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.0225/12.8, allocations: 16.97 MB / 4.366 GB, free: 18.49 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006531/12.81, allocations: 3.065 MB / 4.369 GB, free: 17.89 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/12.81, allocations: 1.268 MB / 4.37 GB, free: 17.88 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04639/12.86, allocations: 24.42 MB / 4.394 GB, free: 19.03 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004505/12.86, allocations: 1.884 MB / 4.396 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=192): time 6.412e-06/12.86, allocations: 3.141 kB / 4.396 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of matching and sorting (n=212): time 0.02386/12.88, allocations: 8.927 MB / 4.404 GB, free: 17.78 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001647/12.88, allocations: 259.4 kB / 4.405 GB, free: 17.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/12.89, allocations: 1.503 MB / 4.406 GB, free: 17.25 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000391/12.89, allocations: 70.61 kB / 4.406 GB, free: 17.22 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007721/12.89, allocations: 1.039 MB / 4.407 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000595/12.89, allocations: 0.704 MB / 4.408 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/12.89, allocations: 50.53 kB / 4.408 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001728/12.89, allocations: 395.4 kB / 4.408 GB, free: 16.07 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/12.89, allocations: 1.141 MB / 4.409 GB, free: 16.06 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002325/12.89, allocations: 1.654 MB / 4.411 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002309/12.9, allocations: 1.407 MB / 4.412 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/12.9, allocations: 7.578 kB / 4.412 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.006353/12.9, allocations: 3.522 MB / 4.416 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001932/12.9, allocations: 5.142 MB / 4.421 GB, free: 9.801 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.698e-05/12.9, allocations: 13.91 kB / 4.421 GB, free: 9.801 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/12.9, allocations: 335.6 kB / 4.421 GB, free: 9.762 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002729/12.91, allocations: 0.5988 MB / 4.422 GB, free: 9.758 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/12.91, allocations: 3.087 MB / 4.425 GB, free: 23.17 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003597/12.91, allocations: 340.8 kB / 4.425 GB, free: 23.15 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003857/12.91, allocations: 122.2 kB / 4.425 GB, free: 23.15 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/12.91, allocations: 9.266 kB / 4.425 GB, free: 23.15 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005187/12.92, allocations: 3.23 MB / 4.428 GB, free: 23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.177e-05/12.92, allocations: 12.44 kB / 4.428 GB, free: 23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/12.92, allocations: 341.2 kB / 4.429 GB, free: 22.96 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002298/12.92, allocations: 0.5883 MB / 4.429 GB, free: 22.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/12.92, allocations: 3.088 MB / 4.432 GB, free: 20.37 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/12.93, allocations: 335.6 kB / 4.433 GB, free: 20.34 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003515/12.93, allocations: 122.9 kB / 4.433 GB, free: 20.34 MB / 0.573 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 () * 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.0008504/12.93, allocations: 334.6 kB / 4.433 GB, free: 20.14 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004862/12.93, allocations: 235.4 kB / 4.433 GB, free: 20.03 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00951/12.94, allocations: 8.202 MB / 4.441 GB, free: 19.18 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-05/12.94, allocations: 92.84 kB / 4.441 GB, free: 19.18 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/12.94, allocations: 4 kB / 4.441 GB, free: 19.17 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006959/12.95, allocations: 7.117 MB / 4.448 GB, free: 18.21 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01829/12.96, allocations: 13.23 MB / 4.461 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/12.96, allocations: 5.281 kB / 4.461 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001996/12.97, allocations: 0.4887 MB / 4.462 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/12.97, allocations: 449.8 kB / 4.462 GB, free: 16.47 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003545/12.97, allocations: 89.94 kB / 4.462 GB, free: 16.47 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/12.97, allocations: 3.23 MB / 4.465 GB, free: 13.87 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/12.97, allocations: 6.375 kB / 4.465 GB, free: 13.87 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009062/12.98, allocations: 8.236 MB / 4.474 GB, free: 12.41 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001805/12.98, allocations: 0.8358 MB / 4.474 GB, free: 12.06 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004045/12.98, allocations: 64.2 kB / 4.474 GB, free: 12.06 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00177/12.98, allocations: 239.4 kB / 4.475 GB, free: 12.02 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003253/12.98, allocations: 205.4 kB / 4.475 GB, free: 12.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/12.98, allocations: 95.17 kB / 4.475 GB, free: 12.02 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001718/12.99, allocations: 1.325 MB / 4.476 GB, free: 11.85 MB / 0.573 GB Notification: Performance of sort global known variables: time 3e-07/12.99, allocations: 0 / 4.476 GB, free: 11.85 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01022/13, allocations: 2.952 MB / 4.479 GB, free: 11.49 MB / 0.573 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) * 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.0194/13.02, allocations: 13.07 MB / 4.492 GB, free: 6.844 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008129/13.02, allocations: 5.624 MB / 4.497 GB, free: 4.707 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/13.02, allocations: 1.562 kB / 4.497 GB, free: 4.707 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004167/13.03, allocations: 2.959 MB / 4.5 GB, free: 3.438 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007078/13.03, allocations: 1.219 MB / 4.501 GB, free: 3.16 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01829/13.05, allocations: 8.085 MB / 4.509 GB, free: 14.28 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/13.05, allocations: 2.392 MB / 4.512 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005399/13.06, allocations: 2.772 MB / 4.514 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/13.06, allocations: 1.417 MB / 4.516 GB, free: 9.484 MB / 0.5886 GB Notification: Performance of SimCode: time 9.62e-07/13.06, allocations: 0 / 4.516 GB, free: 9.484 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.594/13.66, allocations: 136.4 MB / 4.649 GB, free: 62.69 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/13.66, allocations: 222.9 kB / 4.649 GB, free: 62.47 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/21.62, allocations: 3.938 kB / 4.649 GB, free: 62.46 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat