Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.001461/0.001461, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.117/2.117, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001141/0.001141, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2988/0.2988, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.678e-05/3.695e-05, allocations: 3.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1309, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.382/2.513, allocations: 0.6591 GB / 1.132 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/2.513, allocations: 82.08 kB / 1.132 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.44/5.953, allocations: 0.6089 GB / 1.741 GB, free: 42.02 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.743e-06/5.953, allocations: 0 / 1.741 GB, free: 42.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002747/5.953, allocations: 72.09 kB / 1.741 GB, free: 42.02 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01334/5.967, allocations: 3.194 MB / 1.744 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/5.967, allocations: 9.031 kB / 1.744 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009555/5.968, allocations: 255.1 kB / 1.744 GB, free: 40.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004403/5.972, allocations: 462.9 kB / 1.745 GB, free: 40.72 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008162/5.98, allocations: 1.996 MB / 1.747 GB, free: 40.37 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/5.981, allocations: 139.8 kB / 1.747 GB, free: 40.37 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006729/5.981, allocations: 182.3 kB / 1.747 GB, free: 40.36 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006633/5.988, allocations: 2.709 MB / 1.75 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.467e-05/5.988, allocations: 8.391 kB / 1.75 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004082/5.989, allocations: 78.41 kB / 1.75 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003072/5.989, allocations: 157.8 kB / 1.75 GB, free: 39.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006286/5.995, allocations: 2.283 MB / 1.752 GB, free: 39.89 MB / 0.5261 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.03615/6.031, allocations: 11.62 MB / 1.763 GB, free: 33.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007989/6.039, allocations: 1.844 MB / 1.765 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004684/6.044, allocations: 1.113 MB / 1.766 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002312/6.047, allocations: 465.9 kB / 1.767 GB, free: 33.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005818/6.052, allocations: 1.328 MB / 1.768 GB, free: 32.88 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 1.159e-05/6.053, allocations: 0 / 1.768 GB, free: 32.88 MB / 0.5261 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.07129/6.124, allocations: 9.651 MB / 1.778 GB, free: 31.63 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001944/6.124, allocations: 369.7 kB / 1.778 GB, free: 31.22 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005156/6.129, allocations: 1.463 MB / 1.779 GB, free: 30.99 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001001/6.13, allocations: 68.8 kB / 1.779 GB, free: 30.96 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001503/6.132, allocations: 0.8395 MB / 1.78 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001712/6.134, allocations: 0.676 MB / 1.781 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005167/6.134, allocations: 45.62 kB / 1.781 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002784/6.135, allocations: 394.8 kB / 1.781 GB, free: 29.83 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004821/6.139, allocations: 1.047 MB / 1.782 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005912/6.145, allocations: 1.538 MB / 1.784 GB, free: 29.35 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005697/6.151, allocations: 1.327 MB / 1.785 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.778e-05/6.151, allocations: 3.969 kB / 1.785 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.0165/6.168, allocations: 3.178 MB / 1.788 GB, free: 29.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001408/6.169, allocations: 4.166 MB / 1.792 GB, free: 24.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.395e-05/6.169, allocations: 14.69 kB / 1.792 GB, free: 24.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001919/6.171, allocations: 307.8 kB / 1.793 GB, free: 24.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005516/6.177, allocations: 0.5599 MB / 1.793 GB, free: 24.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002423/6.179, allocations: 3 MB / 1.796 GB, free: 22.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005139/6.185, allocations: 224.5 kB / 1.796 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001085/6.186, allocations: 203.6 kB / 1.796 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/6.186, allocations: 4.312 kB / 1.796 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009791/6.196, allocations: 3.034 MB / 1.799 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.967e-05/6.196, allocations: 10.53 kB / 1.799 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/6.197, allocations: 296.9 kB / 1.8 GB, free: 21.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004895/6.202, allocations: 0.5518 MB / 1.8 GB, free: 21.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003352/6.205, allocations: 2.997 MB / 1.803 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003898/6.209, allocations: 227.2 kB / 1.803 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008556/6.21, allocations: 200.9 kB / 1.804 GB, free: 35.27 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (261): * Single equations (assignments): 254 * 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 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001145/6.211, allocations: 300.7 kB / 1.804 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008169/6.212, allocations: 233.9 kB / 1.804 GB, free: 34.98 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/6.226, allocations: 3.904 MB / 1.808 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-05/6.226, allocations: 20.34 kB / 1.808 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/6.226, allocations: 3.906 kB / 1.808 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008189/6.234, allocations: 2.977 MB / 1.811 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02247/6.257, allocations: 7.083 MB / 1.818 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.357e-05/6.257, allocations: 6.625 kB / 1.818 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004227/6.261, allocations: 461.5 kB / 1.818 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001486/6.263, allocations: 316 kB / 1.819 GB, free: 32.76 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000836/6.264, allocations: 108.6 kB / 1.819 GB, free: 32.76 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004213/6.268, allocations: 3.746 MB / 1.822 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/6.268, allocations: 14.69 kB / 1.822 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/6.28, allocations: 4.98 MB / 1.827 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002467/6.283, allocations: 0.5709 MB / 1.828 GB, free: 27.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001042/6.284, allocations: 62.98 kB / 1.828 GB, free: 27.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003607/6.287, allocations: 139 kB / 1.828 GB, free: 27.96 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006886/6.288, allocations: 192.9 kB / 1.828 GB, free: 27.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005148/6.289, allocations: 181.4 kB / 1.828 GB, free: 27.95 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002583/6.291, allocations: 1.12 MB / 1.829 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.72e-07/6.291, allocations: 0 / 1.829 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01032/6.302, allocations: 2.089 MB / 1.831 GB, free: 27.53 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (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,junctionVolume.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 (206): * Single equations (assignments): 199 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02233/6.324, allocations: 9.504 MB / 1.841 GB, free: 23.86 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.013/6.337, allocations: 4.524 MB / 1.845 GB, free: 23.54 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.829e-05/6.337, allocations: 0 / 1.845 GB, free: 23.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004856/6.342, allocations: 1.624 MB / 1.847 GB, free: 23.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009657/6.352, allocations: 1.128 MB / 1.848 GB, free: 23.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/6.37, allocations: 5.354 MB / 1.853 GB, free: 21.93 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002079/6.372, allocations: 1.74 MB / 1.855 GB, free: 21.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00397/6.376, allocations: 1.109 MB / 1.856 GB, free: 21.19 MB / 0.5417 GB Notification: Performance of SimCode: time 2.244e-06/6.376, allocations: 0 / 1.856 GB, free: 21.19 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.083/11.46, allocations: 107.9 MB / 1.961 GB, free: 70.12 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat