Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",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.001502/0.001502, 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 1.994/1.994, 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.001075/0.001074, allocations: 92.05 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.2957/0.2957, allocations: 43.5 MB / 353.6 MB, free: 2.254 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.117e-05/2.154e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4179/0.4179, allocations: 58.84 MB / 477.2 MB, free: 5.293 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.317/8.735, allocations: 2.781 GB / 3.247 GB, free: 8.16 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/8.735, allocations: 91.3 kB / 3.247 GB, free: 8.109 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.623/11.36, allocations: 434.8 MB / 3.672 GB, free: 58.11 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.114e-06/11.36, allocations: 0 / 3.672 GB, free: 58.11 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 7.196e-05/11.36, allocations: 19.62 kB / 3.672 GB, free: 58.11 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.008523/11.37, allocations: 1.748 MB / 3.673 GB, free: 57.38 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/11.37, allocations: 13.11 kB / 3.673 GB, free: 57.38 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003689/11.37, allocations: 324.3 kB / 3.674 GB, free: 57.34 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/11.37, allocations: 0.5789 MB / 3.674 GB, free: 57.11 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.084e-05/11.37, allocations: 28 kB / 3.674 GB, free: 57.11 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/11.37, allocations: 33.56 kB / 3.674 GB, free: 57.11 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001406/11.37, allocations: 0.5403 MB / 3.675 GB, free: 57.11 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/11.38, allocations: 0.6634 MB / 3.676 GB, free: 56.9 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/11.38, allocations: 2.625 kB / 3.676 GB, free: 56.9 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.533e-05/11.38, allocations: 3.781 kB / 3.676 GB, free: 56.9 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.584e-05/11.38, allocations: 21.72 kB / 3.676 GB, free: 56.9 MB / 0.4952 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.03151/11.41, allocations: 12.02 MB / 3.687 GB, free: 49.21 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/11.41, allocations: 455.2 kB / 3.688 GB, free: 49.18 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004706/11.41, allocations: 224.8 kB / 3.688 GB, free: 49.18 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1755/11.58, allocations: 55.74 MB / 3.742 GB, free: 30.54 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.196e-05/11.58, allocations: 40.56 kB / 3.742 GB, free: 30.5 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=47): time 4.338e-06/11.58, allocations: 4 kB / 3.742 GB, free: 30.49 MB / 0.5108 GB Notification: Performance of matching and sorting (n=51): time 0.008782/11.59, allocations: 1.815 MB / 3.744 GB, free: 30.09 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/11.59, allocations: 113.1 kB / 3.744 GB, free: 29.97 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006117/11.59, allocations: 371 kB / 3.745 GB, free: 29.85 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 6.801e-05/11.59, allocations: 25.7 kB / 3.745 GB, free: 29.82 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002415/11.59, allocations: 367.3 kB / 3.745 GB, free: 29.57 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/11.59, allocations: 176.5 kB / 3.745 GB, free: 29.46 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/11.6, allocations: 6.531 kB / 3.745 GB, free: 29.46 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001373/11.6, allocations: 335.7 kB / 3.746 GB, free: 29.15 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004485/11.6, allocations: 186.4 kB / 3.746 GB, free: 29.15 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005626/11.6, allocations: 353.2 kB / 3.746 GB, free: 28.96 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/11.6, allocations: 327.5 kB / 3.746 GB, free: 28.96 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/11.6, allocations: 4 kB / 3.746 GB, free: 28.95 MB / 0.5108 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003232/11.6, allocations: 0.8071 MB / 3.747 GB, free: 28.89 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006558/11.6, allocations: 1.746 MB / 3.749 GB, free: 27.06 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/11.6, allocations: 5.047 kB / 3.749 GB, free: 27.06 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/11.6, allocations: 291.6 kB / 3.749 GB, free: 27.05 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009137/11.6, allocations: 141.8 kB / 3.749 GB, free: 27.04 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/11.61, allocations: 0.9639 MB / 3.75 GB, free: 26.51 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/11.61, allocations: 81.62 kB / 3.75 GB, free: 26.5 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.592e-05/11.61, allocations: 38.58 kB / 3.75 GB, free: 26.5 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/11.61, allocations: 3.75 kB / 3.75 GB, free: 26.5 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00271/11.61, allocations: 0.6843 MB / 3.751 GB, free: 26.47 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/11.61, allocations: 3.656 kB / 3.751 GB, free: 26.47 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001854/11.61, allocations: 270.5 kB / 3.751 GB, free: 26.45 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000878/11.61, allocations: 143.8 kB / 3.751 GB, free: 26.45 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/11.62, allocations: 0.8543 MB / 3.752 GB, free: 25.91 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009837/11.62, allocations: 76.55 kB / 3.752 GB, free: 25.91 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.966e-05/11.62, allocations: 32.84 kB / 3.752 GB, free: 25.91 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 20} Notification: Performance of prepare postOptimizeDAE: time 0.0002963/11.62, allocations: 130.5 kB / 3.752 GB, free: 25.79 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002338/11.62, allocations: 0.5661 MB / 3.753 GB, free: 25.71 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/11.62, allocations: 59.09 kB / 3.753 GB, free: 25.68 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004541/11.62, allocations: 2.619 MB / 3.756 GB, free: 25.37 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.896e-05/11.62, allocations: 43.09 kB / 3.756 GB, free: 25.37 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/11.62, allocations: 4 kB / 3.756 GB, free: 25.36 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/11.62, allocations: 6.984 kB / 3.756 GB, free: 25.36 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006112/11.63, allocations: 3.611 MB / 3.759 GB, free: 24.95 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/11.63, allocations: 0 / 3.759 GB, free: 24.95 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/11.63, allocations: 173.2 kB / 3.759 GB, free: 24.95 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003339/11.63, allocations: 73.05 kB / 3.759 GB, free: 24.93 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.751e-05/11.63, allocations: 5.125 kB / 3.759 GB, free: 24.93 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009194/11.63, allocations: 1.205 MB / 3.761 GB, free: 23.82 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/11.63, allocations: 0 / 3.761 GB, free: 23.82 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004212/11.64, allocations: 2.261 MB / 3.763 GB, free: 23.55 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006428/11.64, allocations: 323.8 kB / 3.763 GB, free: 23.36 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/11.64, allocations: 2.781 kB / 3.763 GB, free: 23.36 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009369/11.64, allocations: 58 kB / 3.763 GB, free: 23.36 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/11.64, allocations: 58.36 kB / 3.763 GB, free: 23.36 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.545e-05/11.64, allocations: 19.59 kB / 3.763 GB, free: 23.36 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0006637/11.64, allocations: 395.1 kB / 3.764 GB, free: 23.25 MB / 0.5108 GB Notification: Performance of sort global known variables: time 5.31e-07/11.64, allocations: 0 / 3.764 GB, free: 23.25 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.00721/11.65, allocations: 1.346 MB / 3.765 GB, free: 23.06 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 23 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse16.phase,$cse16.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01599/11.66, allocations: 4.524 MB / 3.769 GB, free: 21.97 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.003878/11.67, allocations: 1.187 MB / 3.771 GB, free: 21.95 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/11.67, allocations: 1.5 kB / 3.771 GB, free: 21.95 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.001528/11.67, allocations: 0.7411 MB / 3.771 GB, free: 21.94 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/11.67, allocations: 278.7 kB / 3.772 GB, free: 21.92 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008788/11.68, allocations: 2.425 MB / 3.774 GB, free: 21.17 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007965/11.68, allocations: 1.145 MB / 3.775 GB, free: 20.45 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007848/11.68, allocations: 434 kB / 3.775 GB, free: 20.44 MB / 0.5108 GB Notification: Performance of SimCode: time 1.924e-06/11.68, allocations: 0 / 3.775 GB, free: 20.44 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.963/15.65, allocations: 44.88 MB / 3.819 GB, free: 5.355 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat does not exist to compare? outputFormat=mat