Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.002509/0.002508, allocations: 177.8 kB / 8.36 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.112/2.112, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001229/0.001228, allocations: 92.98 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.3049/0.3049, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.852e-05/1.852e-05, allocations: 0 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4292/0.4292, allocations: 58.86 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.967/2.396, allocations: 0.6583 GB / 1.124 GB, free: 78.5 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003313/2.397, allocations: 84.86 kB / 1.124 GB, free: 78.46 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.158/5.554, allocations: 0.5396 GB / 1.664 GB, free: 44.48 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.986e-06/5.554, allocations: 0 / 1.664 GB, free: 44.48 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0002463/5.555, allocations: 60.12 kB / 1.664 GB, free: 44.47 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.01296/5.568, allocations: 3.036 MB / 1.667 GB, free: 43.22 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/5.568, allocations: 10.25 kB / 1.667 GB, free: 43.22 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004626/5.572, allocations: 443.7 kB / 1.667 GB, free: 43.09 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008224/5.581, allocations: 1.927 MB / 1.669 GB, free: 42.66 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/5.581, allocations: 59.77 kB / 1.669 GB, free: 42.66 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006629/5.581, allocations: 100.3 kB / 1.669 GB, free: 42.66 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005559/5.587, allocations: 2.127 MB / 1.672 GB, free: 42.65 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005655/5.593, allocations: 2.37 MB / 1.674 GB, free: 42.23 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-05/5.593, allocations: 8.094 kB / 1.674 GB, free: 42.23 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003134/5.593, allocations: 6.625 kB / 1.674 GB, free: 42.23 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003029/5.594, allocations: 156.6 kB / 1.674 GB, free: 42.22 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.02232/5.616, allocations: 10.77 MB / 1.685 GB, free: 36.4 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004063/5.62, allocations: 1.726 MB / 1.686 GB, free: 36.09 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002019/5.622, allocations: 0.9776 MB / 1.687 GB, free: 36.08 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001316/5.623, allocations: 457.7 kB / 1.688 GB, free: 35.78 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002366/5.626, allocations: 1.157 MB / 1.689 GB, free: 35.62 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=153): time 4.228e-06/5.626, allocations: 0 / 1.689 GB, free: 35.62 MB / 0.5108 GB Notification: Performance of matching and sorting (n=176): time 0.06464/5.69, allocations: 9.539 MB / 1.698 GB, free: 34.72 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/5.691, allocations: 359.5 kB / 1.698 GB, free: 34.31 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/5.693, allocations: 1.077 MB / 1.699 GB, free: 34.14 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0007382/5.694, allocations: 29.45 kB / 1.699 GB, free: 34.11 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009302/5.695, allocations: 0.8596 MB / 1.7 GB, free: 33.66 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009757/5.696, allocations: 0.5672 MB / 1.701 GB, free: 33.29 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002278/5.696, allocations: 5.5 kB / 1.701 GB, free: 33.29 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001527/5.696, allocations: 388.1 kB / 1.701 GB, free: 32.97 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002319/5.698, allocations: 0.9757 MB / 1.702 GB, free: 32.96 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/5.701, allocations: 1.412 MB / 1.704 GB, free: 32.54 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01661/5.718, allocations: 2.33 MB / 1.706 GB, free: 32.53 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.618e-05/5.718, allocations: 3.656 kB / 1.706 GB, free: 32.53 MB / 0.5108 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.0215/5.739, allocations: 3.905 MB / 1.71 GB, free: 32.38 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009417/5.74, allocations: 3.644 MB / 1.713 GB, free: 28.59 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.248e-05/5.741, allocations: 9.469 kB / 1.713 GB, free: 28.59 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006209/5.741, allocations: 171 kB / 1.713 GB, free: 28.56 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004867/5.746, allocations: 0.5359 MB / 1.714 GB, free: 28.56 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/5.748, allocations: 2.338 MB / 1.716 GB, free: 26.49 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004697/5.753, allocations: 180.7 kB / 1.716 GB, free: 26.47 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007489/5.753, allocations: 187.9 kB / 1.717 GB, free: 26.47 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/5.753, allocations: 2.594 kB / 1.717 GB, free: 26.47 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0198/5.773, allocations: 3.518 MB / 1.72 GB, free: 26.39 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.632e-05/5.773, allocations: 9.875 kB / 1.72 GB, free: 26.39 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005397/5.774, allocations: 172 kB / 1.72 GB, free: 26.36 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004594/5.779, allocations: 0.5262 MB / 1.721 GB, free: 26.36 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/5.78, allocations: 2.344 MB / 1.723 GB, free: 24.29 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003705/5.784, allocations: 166.6 kB / 1.723 GB, free: 24.28 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007176/5.785, allocations: 182.5 kB / 1.723 GB, free: 24.28 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.0009569/5.786, allocations: 226.9 kB / 1.724 GB, free: 24.1 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02001/5.806, allocations: 3.388 MB / 1.727 GB, free: 23.89 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009137/5.807, allocations: 195.1 kB / 1.727 GB, free: 23.79 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02443/5.831, allocations: 3.998 MB / 1.731 GB, free: 23.61 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/5.831, allocations: 22.83 kB / 1.731 GB, free: 23.61 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/5.831, allocations: 0 / 1.731 GB, free: 23.61 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0207/5.852, allocations: 3.497 MB / 1.734 GB, free: 23.09 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03398/5.886, allocations: 7.041 MB / 1.741 GB, free: 21.29 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-05/5.886, allocations: 3.562 kB / 1.741 GB, free: 21.29 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003834/5.89, allocations: 419.1 kB / 1.742 GB, free: 21.27 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006585/5.891, allocations: 168.3 kB / 1.742 GB, free: 21.22 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006366/5.891, allocations: 65.58 kB / 1.742 GB, free: 21.21 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/5.894, allocations: 3.027 MB / 1.745 GB, free: 18.32 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.186e-06/5.894, allocations: 3.156 kB / 1.745 GB, free: 18.32 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02346/5.917, allocations: 5.236 MB / 1.75 GB, free: 16.1 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002154/5.919, allocations: 0.5038 MB / 1.75 GB, free: 15.8 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007376/5.92, allocations: 34.61 kB / 1.75 GB, free: 15.79 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002874/5.923, allocations: 98.86 kB / 1.751 GB, free: 15.79 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004527/5.924, allocations: 158.9 kB / 1.751 GB, free: 15.76 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003849/5.924, allocations: 147.9 kB / 1.751 GB, free: 15.74 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.001665/5.926, allocations: 0.798 MB / 1.752 GB, free: 15.41 MB / 0.5108 GB Notification: Performance of sort global known variables: time 4.1e-07/5.926, allocations: 0 / 1.752 GB, free: 15.41 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.009149/5.935, allocations: 1.824 MB / 1.753 GB, free: 15.06 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.03384/5.969, allocations: 9.804 MB / 1.763 GB, free: 23.28 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.01036/5.979, allocations: 4.059 MB / 1.767 GB, free: 19.55 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 1.531e-05/5.979, allocations: 5.484 kB / 1.767 GB, free: 19.55 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.003024/5.982, allocations: 1.416 MB / 1.768 GB, free: 18.23 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007184/5.989, allocations: 0.7769 MB / 1.769 GB, free: 17.67 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/6.005, allocations: 4.833 MB / 1.774 GB, free: 13.41 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00185/6.007, allocations: 1.701 MB / 1.775 GB, free: 12.02 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003722/6.011, allocations: 1.016 MB / 1.776 GB, free: 11.1 MB / 0.5265 GB Notification: Performance of SimCode: time 4.178e-06/6.011, allocations: 0 / 1.776 GB, free: 11.1 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.892/10.9, allocations: 92.15 MB / 1.866 GB, free: 66.73 MB / 0.5421 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat