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.002231/0.002231, allocations: 178.2 kB / 8.363 MB, free: 0.7148 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.063/2.063, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001143/0.001142, allocations: 90.81 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.315/0.315, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.19e-05/2.185e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4459/0.446, allocations: 58.85 MB / 477.2 MB, free: 5.191 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.78/9.226, allocations: 2.825 GB / 3.291 GB, free: 103.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/9.226, allocations: 78.28 kB / 3.291 GB, free: 103.3 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.504/13.73, allocations: 0.8606 GB / 4.152 GB, free: 36.35 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.104e-06/13.73, allocations: 0 / 4.152 GB, free: 36.35 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0002557/13.73, allocations: 60.05 kB / 4.152 GB, free: 36.34 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.0172/13.75, allocations: 3.831 MB / 4.156 GB, free: 34.39 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/13.75, allocations: 7.5 kB / 4.156 GB, free: 34.39 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007848/13.76, allocations: 0.7841 MB / 4.156 GB, free: 34.27 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007368/13.76, allocations: 1.941 MB / 4.158 GB, free: 33.78 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/13.76, allocations: 82.89 kB / 4.158 GB, free: 33.78 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004564/13.76, allocations: 110.9 kB / 4.158 GB, free: 33.77 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005708/13.77, allocations: 2.348 MB / 4.161 GB, free: 33.76 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005691/13.78, allocations: 2.579 MB / 4.163 GB, free: 33.29 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.94e-05/13.78, allocations: 14.91 kB / 4.163 GB, free: 33.29 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002932/13.78, allocations: 6.156 kB / 4.163 GB, free: 33.29 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002786/13.78, allocations: 149.5 kB / 4.163 GB, free: 33.28 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.8406/14.62, allocations: 124.9 MB / 4.285 GB, free: 42.46 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003756/14.62, allocations: 1.432 MB / 4.287 GB, free: 42.44 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002091/14.62, allocations: 0.8979 MB / 4.288 GB, free: 42.43 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05229/14.67, allocations: 17.01 MB / 4.304 GB, free: 31.86 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002745/14.68, allocations: 1.118 MB / 4.305 GB, free: 31.71 MB / 0.5577 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001677/14.68, allocations: 145.6 kB / 4.306 GB, free: 31.7 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=136): time 7.545e-06/14.68, allocations: 0 / 4.306 GB, free: 31.7 MB / 0.5577 GB Notification: Performance of matching and sorting (n=148): time 0.03302/14.71, allocations: 7.361 MB / 4.313 GB, free: 30.23 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/14.71, allocations: 358.4 kB / 4.313 GB, free: 29.82 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002334/14.71, allocations: 1.074 MB / 4.314 GB, free: 29.66 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.0005145/14.72, allocations: 33.7 kB / 4.314 GB, free: 29.63 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.001003/14.72, allocations: 0.9016 MB / 4.315 GB, free: 29.25 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008935/14.72, allocations: 487.4 kB / 4.315 GB, free: 29 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002123/14.72, allocations: 3.438 kB / 4.315 GB, free: 29 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.000154/14.72, allocations: 383.2 kB / 4.316 GB, free: 28.68 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/14.72, allocations: 0.9127 MB / 4.317 GB, free: 28.68 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002418/14.72, allocations: 1.28 MB / 4.318 GB, free: 28.29 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01911/14.74, allocations: 2.67 MB / 4.321 GB, free: 28.22 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.616e-05/14.74, allocations: 3.188 kB / 4.321 GB, free: 28.22 MB / 0.5577 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.02512/14.77, allocations: 4.313 MB / 4.325 GB, free: 28.04 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008654/14.77, allocations: 3.73 MB / 4.328 GB, free: 24.12 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.583e-05/14.77, allocations: 10.38 kB / 4.328 GB, free: 24.12 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003911/14.77, allocations: 0.533 MB / 4.329 GB, free: 24.08 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003589/14.78, allocations: 428.5 kB / 4.329 GB, free: 24.08 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/14.78, allocations: 2.933 MB / 4.332 GB, free: 21.99 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004238/14.78, allocations: 245.9 kB / 4.332 GB, free: 21.96 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005433/14.78, allocations: 90.69 kB / 4.333 GB, free: 21.96 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/14.78, allocations: 7.281 kB / 4.333 GB, free: 21.96 MB / 0.5577 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02234/14.81, allocations: 3.864 MB / 4.336 GB, free: 21.85 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.538e-05/14.81, allocations: 7.562 kB / 4.336 GB, free: 21.85 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006665/14.81, allocations: 182.1 kB / 4.337 GB, free: 21.82 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003709/14.81, allocations: 453.9 kB / 4.337 GB, free: 21.82 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/14.81, allocations: 1.891 MB / 4.339 GB, free: 20.26 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003136/14.82, allocations: 216.9 kB / 4.339 GB, free: 20.24 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002856/14.82, allocations: 93.33 kB / 4.339 GB, free: 20.24 MB / 0.5577 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,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,pipe1.state_b.phase) * Number of discrete 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.0007443/14.82, allocations: 228.3 kB / 4.339 GB, free: 20.06 MB / 0.5577 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008667/14.83, allocations: 2.437 MB / 4.342 GB, free: 19.87 MB / 0.5577 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000668/14.83, allocations: 176.6 kB / 4.342 GB, free: 19.78 MB / 0.5577 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01362/14.84, allocations: 6.389 MB / 4.348 GB, free: 19.25 MB / 0.5577 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.865e-05/14.84, allocations: 66.27 kB / 4.348 GB, free: 19.25 MB / 0.5577 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/14.84, allocations: 3.969 kB / 4.348 GB, free: 19.25 MB / 0.5577 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01068/14.85, allocations: 5.406 MB / 4.353 GB, free: 18.51 MB / 0.5577 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01889/14.87, allocations: 8.638 MB / 4.362 GB, free: 17.96 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.219e-05/14.87, allocations: 5.484 kB / 4.362 GB, free: 17.96 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00241/14.87, allocations: 283.8 kB / 4.362 GB, free: 17.96 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003926/14.88, allocations: 1.503 MB / 4.364 GB, free: 17.88 MB / 0.5577 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000471/14.88, allocations: 39.09 kB / 4.364 GB, free: 17.88 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004/14.88, allocations: 3.687 MB / 4.367 GB, free: 15.76 MB / 0.5577 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/14.88, allocations: 0 / 4.367 GB, free: 15.76 MB / 0.5577 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01427/14.89, allocations: 6.488 MB / 4.374 GB, free: 15.16 MB / 0.5577 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002305/14.9, allocations: 0.6608 MB / 4.374 GB, free: 14.88 MB / 0.5577 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007233/14.9, allocations: 16.83 kB / 4.374 GB, free: 14.88 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002957/14.9, allocations: 157.6 kB / 4.374 GB, free: 14.85 MB / 0.5577 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/14.9, allocations: 122.1 kB / 4.375 GB, free: 14.85 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000224/14.9, allocations: 66.42 kB / 4.375 GB, free: 14.85 MB / 0.5577 GB Notification: Performance of sorting global known variables: time 0.002122/14.9, allocations: 1.047 MB / 4.376 GB, free: 14.74 MB / 0.5577 GB Notification: Performance of sort global known variables: time 8.41e-07/14.9, allocations: 4 kB / 4.376 GB, free: 14.74 MB / 0.5577 GB Notification: Performance of remove unused functions: time 0.01228/14.92, allocations: 2.605 MB / 4.378 GB, free: 14.62 MB / 0.5577 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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 (149): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.02905/14.94, allocations: 9.737 MB / 4.388 GB, free: 12.91 MB / 0.5577 GB Notification: Performance of simCode: created initialization part: time 0.009979/14.95, allocations: 4.252 MB / 4.392 GB, free: 12.61 MB / 0.5577 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/14.95, allocations: 4.281 kB / 4.392 GB, free: 12.61 MB / 0.5577 GB Notification: Performance of simCode: created simulation system equations: time 0.00405/14.96, allocations: 1.979 MB / 4.394 GB, free: 12.47 MB / 0.5577 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00742/14.97, allocations: 0.8039 MB / 4.395 GB, free: 12.42 MB / 0.5577 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01911/14.99, allocations: 6.277 MB / 4.401 GB, free: 10.92 MB / 0.5577 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001969/14.99, allocations: 2.047 MB / 4.403 GB, free: 10.14 MB / 0.5577 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/14.99, allocations: 1.137 MB / 4.404 GB, free: 10.14 MB / 0.5577 GB Notification: Performance of SimCode: time 1.864e-06/14.99, allocations: 0 / 4.404 GB, free: 10.14 MB / 0.5577 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.51/20.5, allocations: 119.6 MB / 4.521 GB, free: 80.57 MB / 0.5733 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