Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",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.002119/0.002119, allocations: 178.4 kB / 8.362 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.049/2.049, 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.001143, allocations: 93.09 kB / 262.1 MB, free: 13.86 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.3106/0.3106, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.658e-05/2.682e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4343/0.4344, allocations: 58.86 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.043/2.477, allocations: 0.6583 GB / 1.124 GB, free: 78.38 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/2.478, allocations: 76.28 kB / 1.124 GB, free: 78.34 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.169/5.647, allocations: 0.5395 GB / 1.664 GB, free: 44.49 MB / 0.5108 GB Notification: Performance of FrontEnd: time 4.428e-06/5.647, allocations: 0 / 1.664 GB, free: 44.49 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0003634/5.647, allocations: 64 kB / 1.664 GB, free: 44.48 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01536/5.663, allocations: 3.035 MB / 1.667 GB, free: 43.22 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/5.663, allocations: 9.594 kB / 1.667 GB, free: 43.22 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00512/5.668, allocations: 442.9 kB / 1.667 GB, free: 43.1 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009825/5.678, allocations: 1.927 MB / 1.669 GB, free: 42.66 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/5.678, allocations: 60.77 kB / 1.669 GB, free: 42.66 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00136/5.68, allocations: 99.56 kB / 1.669 GB, free: 42.66 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007421/5.687, allocations: 2.125 MB / 1.672 GB, free: 42.65 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006653/5.694, allocations: 2.371 MB / 1.674 GB, free: 42.23 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.51e-05/5.694, allocations: 6.047 kB / 1.674 GB, free: 42.23 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003616/5.694, allocations: 7.781 kB / 1.674 GB, free: 42.23 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003057/5.695, allocations: 151.8 kB / 1.674 GB, free: 42.23 MB / 0.5108 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.02426/5.719, allocations: 10.78 MB / 1.685 GB, free: 36.4 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004311/5.723, allocations: 1.72 MB / 1.686 GB, free: 36.09 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002265/5.726, allocations: 0.9757 MB / 1.687 GB, free: 36.08 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00144/5.727, allocations: 461.6 kB / 1.688 GB, free: 35.79 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002659/5.73, allocations: 1.158 MB / 1.689 GB, free: 35.62 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=153): time 5.621e-06/5.73, allocations: 0 / 1.689 GB, free: 35.62 MB / 0.5108 GB Notification: Performance of matching and sorting (n=176): time 0.06572/5.796, allocations: 9.527 MB / 1.698 GB, free: 34.73 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/5.796, allocations: 355.6 kB / 1.698 GB, free: 34.32 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/5.798, allocations: 1.074 MB / 1.699 GB, free: 34.16 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0006645/5.799, allocations: 29.61 kB / 1.699 GB, free: 34.12 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008258/5.799, allocations: 0.871 MB / 1.7 GB, free: 33.67 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008711/5.8, allocations: 0.5674 MB / 1.701 GB, free: 33.29 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/5.801, allocations: 3.594 kB / 1.701 GB, free: 33.29 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.000155/5.801, allocations: 389.8 kB / 1.701 GB, free: 32.98 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002435/5.803, allocations: 0.9791 MB / 1.702 GB, free: 32.97 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003361/5.807, allocations: 1.409 MB / 1.704 GB, free: 32.55 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01711/5.824, allocations: 2.328 MB / 1.706 GB, free: 32.54 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-05/5.824, allocations: 3.719 kB / 1.706 GB, free: 32.54 MB / 0.5108 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.02317/5.847, allocations: 3.915 MB / 1.71 GB, free: 32.38 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009593/5.848, allocations: 3.635 MB / 1.713 GB, free: 28.6 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.071e-05/5.848, allocations: 9.344 kB / 1.713 GB, free: 28.6 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006861/5.849, allocations: 169.6 kB / 1.713 GB, free: 28.57 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004843/5.854, allocations: 0.5365 MB / 1.714 GB, free: 28.57 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/5.855, allocations: 2.338 MB / 1.716 GB, free: 26.5 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004549/5.86, allocations: 180.5 kB / 1.716 GB, free: 26.48 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006858/5.861, allocations: 187.2 kB / 1.717 GB, free: 26.48 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/5.861, allocations: 3.469 kB / 1.717 GB, free: 26.48 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01909/5.88, allocations: 3.517 MB / 1.72 GB, free: 26.4 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.789e-05/5.88, allocations: 12.69 kB / 1.72 GB, free: 26.4 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004992/5.881, allocations: 178 kB / 1.72 GB, free: 26.37 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004384/5.885, allocations: 0.5228 MB / 1.721 GB, free: 26.37 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/5.887, allocations: 2.341 MB / 1.723 GB, free: 24.29 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003556/5.89, allocations: 169.4 kB / 1.723 GB, free: 24.29 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005264/5.891, allocations: 182.9 kB / 1.723 GB, free: 24.29 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009026/5.892, allocations: 236.3 kB / 1.723 GB, free: 24.11 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01946/5.911, allocations: 3.388 MB / 1.727 GB, free: 23.9 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007074/5.912, allocations: 192.7 kB / 1.727 GB, free: 23.8 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0236/5.935, allocations: 3.99 MB / 1.731 GB, free: 23.62 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/5.936, allocations: 22.05 kB / 1.731 GB, free: 23.62 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/5.936, allocations: 0 / 1.731 GB, free: 23.62 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01973/5.955, allocations: 3.501 MB / 1.734 GB, free: 23.1 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03093/5.986, allocations: 7.039 MB / 1.741 GB, free: 21.18 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/5.986, allocations: 7.656 kB / 1.741 GB, free: 21.18 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/5.99, allocations: 408.3 kB / 1.742 GB, free: 21.17 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005877/5.99, allocations: 169.8 kB / 1.742 GB, free: 21.12 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003031/5.991, allocations: 73.12 kB / 1.742 GB, free: 21.11 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002103/5.993, allocations: 3.027 MB / 1.745 GB, free: 18.22 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/5.993, allocations: 10.28 kB / 1.745 GB, free: 18.22 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02318/6.016, allocations: 5.236 MB / 1.75 GB, free: 15.99 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002007/6.018, allocations: 0.5066 MB / 1.75 GB, free: 15.7 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006381/6.019, allocations: 23.88 kB / 1.75 GB, free: 15.69 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002566/6.021, allocations: 99.05 kB / 1.751 GB, free: 15.68 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004254/6.022, allocations: 159.5 kB / 1.751 GB, free: 15.66 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003724/6.022, allocations: 150.1 kB / 1.751 GB, free: 15.64 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.001596/6.024, allocations: 0.7935 MB / 1.752 GB, free: 15.3 MB / 0.5108 GB Notification: Performance of sort global known variables: time 4.5e-07/6.024, allocations: 0 / 1.752 GB, free: 15.3 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.008391/6.032, allocations: 1.819 MB / 1.753 GB, free: 14.95 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (186): * Single equations (assignments): 180 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03389/6.066, allocations: 9.812 MB / 1.763 GB, free: 23.23 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.01069/6.077, allocations: 4.056 MB / 1.767 GB, free: 19.51 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 1.818e-05/6.077, allocations: 7.859 kB / 1.767 GB, free: 19.5 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.003215/6.08, allocations: 1.407 MB / 1.768 GB, free: 18.19 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007511/6.088, allocations: 0.7907 MB / 1.769 GB, free: 17.62 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/6.105, allocations: 4.823 MB / 1.774 GB, free: 13.36 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/6.107, allocations: 1.706 MB / 1.775 GB, free: 11.97 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003846/6.111, allocations: 1.009 MB / 1.776 GB, free: 11.06 MB / 0.5265 GB Notification: Performance of SimCode: time 2.124e-06/6.111, allocations: 3.938 kB / 1.776 GB, free: 11.05 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.95/11.06, allocations: 92.11 MB / 1.866 GB, free: 66.76 MB / 0.5421 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat