Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009796/0.0009796, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008541/0.000854, allocations: 99.2 kB / 286.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2377/0.2377, allocations: 45.15 MB / 383.8 MB, free: 232 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.498e-05/1.507e-05, allocations: 0 / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1259, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.664/8.79, allocations: 2.83 GB / 3.335 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/8.791, allocations: 75.34 kB / 3.335 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.319/12.11, allocations: 0.8005 GB / 4.136 GB, free: 44 MB / 0.5573 GB Notification: Performance of FrontEnd: time 6.041e-06/12.11, allocations: 0 / 4.136 GB, free: 44 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0005798/12.11, allocations: 72.25 kB / 4.136 GB, free: 43.98 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01888/12.13, allocations: 3.967 MB / 4.139 GB, free: 41.79 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/12.13, allocations: 7.625 kB / 4.139 GB, free: 41.79 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00669/12.14, allocations: 0.8428 MB / 4.14 GB, free: 41.57 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006944/12.14, allocations: 2.099 MB / 4.142 GB, free: 40.61 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002785/12.14, allocations: 90.33 kB / 4.142 GB, free: 40.59 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/12.14, allocations: 119 kB / 4.143 GB, free: 40.59 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006192/12.15, allocations: 2.894 MB / 4.145 GB, free: 39.56 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007252/12.16, allocations: 2.892 MB / 4.148 GB, free: 38.23 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.599e-05/12.16, allocations: 3.75 kB / 4.148 GB, free: 38.23 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006051/12.16, allocations: 6.875 kB / 4.148 GB, free: 38.23 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001998/12.16, allocations: 164 kB / 4.148 GB, free: 38.21 MB / 0.5573 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.6568/12.82, allocations: 138.1 MB / 4.283 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/12.82, allocations: 1.606 MB / 4.285 GB, free: 22.86 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/12.82, allocations: 0.9993 MB / 4.286 GB, free: 22.85 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03565/12.86, allocations: 18.87 MB / 4.304 GB, free: 25.88 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002648/12.86, allocations: 1.248 MB / 4.305 GB, free: 25.71 MB / 0.6042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001688/12.86, allocations: 158.7 kB / 4.306 GB, free: 25.71 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=152): time 9.398e-06/12.86, allocations: 0 / 4.306 GB, free: 25.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=164): time 0.02585/12.89, allocations: 8.078 MB / 4.313 GB, free: 24.13 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003155/12.89, allocations: 0.5066 MB / 4.314 GB, free: 23.54 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/12.89, allocations: 1.198 MB / 4.315 GB, free: 23.37 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003452/12.89, allocations: 29.52 kB / 4.315 GB, free: 23.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008249/12.89, allocations: 1.022 MB / 4.316 GB, free: 23 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005225/12.89, allocations: 0.5351 MB / 4.317 GB, free: 22.72 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/12.89, allocations: 0 / 4.317 GB, free: 22.72 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001857/12.89, allocations: 397.1 kB / 4.317 GB, free: 22.41 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/12.89, allocations: 1.052 MB / 4.318 GB, free: 22.41 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00151/12.89, allocations: 1.477 MB / 4.32 GB, free: 21.95 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005831/12.9, allocations: 2.004 MB / 4.322 GB, free: 21.89 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.687e-05/12.9, allocations: 3.812 kB / 4.322 GB, free: 21.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01006/12.91, allocations: 3.926 MB / 4.325 GB, free: 21.67 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001684/12.91, allocations: 3.991 MB / 4.329 GB, free: 17.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-05/12.91, allocations: 16.84 kB / 4.329 GB, free: 17.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003245/12.91, allocations: 0.7964 MB / 4.33 GB, free: 17.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/12.92, allocations: 470.9 kB / 4.33 GB, free: 17.53 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004033/12.92, allocations: 3.329 MB / 4.334 GB, free: 15.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003401/12.92, allocations: 236.5 kB / 4.334 GB, free: 15.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000591/12.92, allocations: 107.4 kB / 4.334 GB, free: 15.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/12.92, allocations: 3.25 kB / 4.334 GB, free: 15.4 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009682/12.93, allocations: 3.43 MB / 4.337 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.827e-05/12.93, allocations: 11.09 kB / 4.337 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/12.94, allocations: 340.4 kB / 4.338 GB, free: 15.26 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002031/12.94, allocations: 490.2 kB / 4.338 GB, free: 15.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004178/12.94, allocations: 3.986 MB / 4.342 GB, free: 12.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/12.94, allocations: 216.3 kB / 4.342 GB, free: 12.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005738/12.95, allocations: 101.7 kB / 4.342 GB, free: 12.45 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001241/12.95, allocations: 235.3 kB / 4.343 GB, free: 12.27 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007177/12.95, allocations: 2.733 MB / 4.345 GB, free: 12.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007459/12.95, allocations: 207.2 kB / 4.346 GB, free: 11.98 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/12.96, allocations: 6.793 MB / 4.352 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.376e-05/12.96, allocations: 71.16 kB / 4.352 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/12.96, allocations: 0 / 4.352 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007561/12.97, allocations: 5.771 MB / 4.358 GB, free: 10.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/12.99, allocations: 9.19 MB / 4.367 GB, free: 10.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/12.99, allocations: 2.469 kB / 4.367 GB, free: 10.14 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/12.99, allocations: 303.1 kB / 4.367 GB, free: 10.14 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003788/12.99, allocations: 2.339 MB / 4.369 GB, free: 10.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003731/12.99, allocations: 44.95 kB / 4.369 GB, free: 10.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004438/13, allocations: 4.417 MB / 4.374 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/13, allocations: 2.75 kB / 4.374 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009824/13.01, allocations: 7.233 MB / 4.381 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/13.01, allocations: 0.7109 MB / 4.382 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005003/13.01, allocations: 17.62 kB / 4.382 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/13.01, allocations: 157 kB / 4.382 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003031/13.01, allocations: 134.6 kB / 4.382 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/13.01, allocations: 68.55 kB / 4.382 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001851/13.01, allocations: 1.142 MB / 4.383 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.61e-07/13.01, allocations: 0 / 4.383 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01409/13.03, allocations: 2.747 MB / 4.386 GB, free: 22.64 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (153): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02196/13.05, allocations: 10.19 MB / 4.396 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007874/13.06, allocations: 5.005 MB / 4.401 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.006e-06/13.06, allocations: 4.062 kB / 4.401 GB, free: 19 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002848/13.06, allocations: 2.111 MB / 4.403 GB, free: 17.87 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004397/13.06, allocations: 0.795 MB / 4.403 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/13.08, allocations: 6.752 MB / 4.41 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002326/13.08, allocations: 2.209 MB / 4.412 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.005835/13.09, allocations: 2.481 MB / 4.415 GB, free: 9.586 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001724/13.09, allocations: 1.201 MB / 4.416 GB, free: 9.465 MB / 0.6198 GB Notification: Performance of SimCode: time 1.363e-06/13.09, allocations: 0 / 4.416 GB, free: 9.465 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6068/13.7, allocations: 104.2 MB / 4.517 GB, free: 99.48 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/13.7, allocations: 177.4 kB / 4.518 GB, free: 99.29 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.832/19.53, allocations: 3.938 kB / 4.518 GB, free: 99.29 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat