Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 171.6 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 221.5 MB / 230.7 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009421/0.0009424, allocations: 96.73 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2247/0.2247, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.327e-05/2.367e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1377, allocations: 61.91 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.323/8.46, allocations: 2.786 GB / 3.281 GB, free: 111 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/8.461, allocations: 81.2 kB / 3.281 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.868/10.33, allocations: 439.3 MB / 3.71 GB, free: 68.29 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.974e-06/10.33, allocations: 0 / 3.71 GB, free: 68.29 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.94e-05/10.33, allocations: 15.22 kB / 3.71 GB, free: 68.29 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.007152/10.34, allocations: 1.774 MB / 3.712 GB, free: 67.31 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/10.34, allocations: 11.52 kB / 3.712 GB, free: 67.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002544/10.34, allocations: 332 kB / 3.712 GB, free: 67.25 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/10.34, allocations: 0.5715 MB / 3.713 GB, free: 66.86 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/10.34, allocations: 24.53 kB / 3.713 GB, free: 66.86 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/10.34, allocations: 30.44 kB / 3.713 GB, free: 66.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009162/10.34, allocations: 0.5421 MB / 3.713 GB, free: 66.67 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009483/10.34, allocations: 0.6568 MB / 3.714 GB, free: 66.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/10.34, allocations: 3.719 kB / 3.714 GB, free: 66.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.985e-05/10.34, allocations: 0 / 3.714 GB, free: 66.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.513e-05/10.34, allocations: 32.22 kB / 3.714 GB, free: 66.3 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.1551/10.5, allocations: 83.8 MB / 3.796 GB, free: 19.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009221/10.5, allocations: 352.9 kB / 3.796 GB, free: 19.38 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003511/10.5, allocations: 179.6 kB / 3.796 GB, free: 19.21 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03811/10.54, allocations: 16.64 MB / 3.813 GB, free: 2.746 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/10.54, allocations: 38.56 kB / 3.813 GB, free: 2.699 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=37): time 6.272e-06/10.54, allocations: 0 / 3.813 GB, free: 2.699 MB / 0.5417 GB Notification: Performance of matching and sorting (n=37): time 0.4981/11.03, allocations: 0.7915 MB / 3.814 GB, free: 86.57 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.471e-05/11.03, allocations: 108.1 kB / 3.814 GB, free: 86.45 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/11.04, allocations: 425.7 kB / 3.814 GB, free: 86.34 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.502e-05/11.04, allocations: 25.7 kB / 3.814 GB, free: 86.31 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003795/11.04, allocations: 367.6 kB / 3.814 GB, free: 86.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/11.04, allocations: 123.5 kB / 3.815 GB, free: 86.13 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/11.04, allocations: 0 / 3.815 GB, free: 86.13 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001771/11.04, allocations: 365.3 kB / 3.815 GB, free: 85.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/11.04, allocations: 161.3 kB / 3.815 GB, free: 85.82 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004902/11.04, allocations: 338.4 kB / 3.815 GB, free: 85.61 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/11.04, allocations: 291.5 kB / 3.816 GB, free: 85.61 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/11.04, allocations: 5.906 kB / 3.816 GB, free: 85.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002294/11.04, allocations: 0.7037 MB / 3.816 GB, free: 85.53 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007709/11.04, allocations: 2.092 MB / 3.818 GB, free: 83.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/11.04, allocations: 5.656 kB / 3.818 GB, free: 83.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009898/11.04, allocations: 178.5 kB / 3.819 GB, free: 83.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007051/11.04, allocations: 147.8 kB / 3.819 GB, free: 83.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/11.05, allocations: 0.8286 MB / 3.82 GB, free: 82.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/11.05, allocations: 142.2 kB / 3.82 GB, free: 82.81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/11.05, allocations: 32.64 kB / 3.82 GB, free: 82.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/11.05, allocations: 4.875 kB / 3.82 GB, free: 82.81 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002268/11.05, allocations: 0.602 MB / 3.82 GB, free: 82.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/11.05, allocations: 5.094 kB / 3.82 GB, free: 82.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008923/11.05, allocations: 175.1 kB / 3.82 GB, free: 82.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006065/11.05, allocations: 149.3 kB / 3.821 GB, free: 82.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007581/11.05, allocations: 0.7203 MB / 3.821 GB, free: 82.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009159/11.05, allocations: 110.8 kB / 3.821 GB, free: 82.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.264e-05/11.05, allocations: 33.77 kB / 3.821 GB, free: 82.25 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 6 (pump.heatTransfer.states[1].phase,Source.medium.phase,Sink.medium.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 (56): * Single equations (assignments): 55 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002881/11.05, allocations: 133 kB / 3.822 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00146/11.05, allocations: 490.5 kB / 3.822 GB, free: 82.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/11.05, allocations: 59.48 kB / 3.822 GB, free: 82.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0028/11.06, allocations: 1.781 MB / 3.824 GB, free: 81.9 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-05/11.06, allocations: 19.44 kB / 3.824 GB, free: 81.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/11.06, allocations: 0 / 3.824 GB, free: 81.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/11.06, allocations: 6.578 kB / 3.824 GB, free: 81.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/11.06, allocations: 0.9032 MB / 3.825 GB, free: 81.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/11.06, allocations: 0 / 3.825 GB, free: 81.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/11.06, allocations: 60.36 kB / 3.825 GB, free: 81.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/11.06, allocations: 1.121 MB / 3.826 GB, free: 81.67 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/11.06, allocations: 5.047 kB / 3.826 GB, free: 81.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00204/11.06, allocations: 1.64 MB / 3.827 GB, free: 81.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/11.06, allocations: 1.438 kB / 3.827 GB, free: 81.11 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/11.06, allocations: 1.429 MB / 3.829 GB, free: 80.85 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004763/11.07, allocations: 265.7 kB / 3.829 GB, free: 80.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.921e-05/11.07, allocations: 4.531 kB / 3.829 GB, free: 80.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005814/11.07, allocations: 74.98 kB / 3.829 GB, free: 80.71 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/11.07, allocations: 37.2 kB / 3.829 GB, free: 80.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/11.07, allocations: 21.86 kB / 3.829 GB, free: 80.71 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000643/11.07, allocations: 460.9 kB / 3.83 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/11.07, allocations: 2.438 kB / 3.83 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008415/11.08, allocations: 1.397 MB / 3.831 GB, free: 80.57 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.01724/11.09, allocations: 3.369 MB / 3.834 GB, free: 79.73 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003489/11.1, allocations: 0.866 MB / 3.835 GB, free: 79.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/11.1, allocations: 1.156 kB / 3.835 GB, free: 79.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001052/11.1, allocations: 408.8 kB / 3.836 GB, free: 79.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/11.1, allocations: 249.4 kB / 3.836 GB, free: 79.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/11.11, allocations: 1.708 MB / 3.837 GB, free: 79.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/11.11, allocations: 1.038 MB / 3.839 GB, free: 78.59 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002919/11.12, allocations: 0.8149 MB / 3.839 GB, free: 78.58 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006901/11.12, allocations: 307.8 kB / 3.84 GB, free: 78.57 MB / 0.5417 GB Notification: Performance of SimCode: time 2.094e-06/11.12, allocations: 0 / 3.84 GB, free: 78.57 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1219/11.24, allocations: 45.83 MB / 3.884 GB, free: 77.19 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002919/11.24, allocations: 197.6 kB / 3.885 GB, free: 76.93 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.784/15.02, allocations: 1.125 kB / 3.885 GB, free: 76.93 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed_res.mat does not exist to compare? outputFormat=mat