Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.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.TestWaterPumpNPSH,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH",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.002327/0.002333, allocations: 177.8 kB / 8.363 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.408/2.408, 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.001074/0.001073, allocations: 93.64 kB / 262.1 MB, free: 13.87 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.3087/0.3087, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.89e-05/1.884e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.423/0.423, allocations: 58.85 MB / 477.2 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.42/8.843, allocations: 2.786 GB / 3.252 GB, free: 3.07 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/8.843, allocations: 87.08 kB / 3.252 GB, free: 3.027 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.587/11.43, allocations: 435.5 MB / 3.677 GB, free: 57.54 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.514e-06/11.43, allocations: 0 / 3.677 GB, free: 57.54 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 9.126e-05/11.43, allocations: 18.94 kB / 3.677 GB, free: 57.54 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.009249/11.44, allocations: 1.764 MB / 3.679 GB, free: 56.81 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/11.44, allocations: 10.88 kB / 3.679 GB, free: 56.81 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004027/11.44, allocations: 349.6 kB / 3.679 GB, free: 56.77 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/11.45, allocations: 0.5757 MB / 3.68 GB, free: 56.54 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.841e-05/11.45, allocations: 24.69 kB / 3.68 GB, free: 56.54 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/11.45, allocations: 38.41 kB / 3.68 GB, free: 56.54 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00148/11.45, allocations: 0.5576 MB / 3.681 GB, free: 56.54 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/11.45, allocations: 0.6724 MB / 3.681 GB, free: 56.33 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/11.45, allocations: 0 / 3.681 GB, free: 56.33 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.845e-05/11.45, allocations: 3.25 kB / 3.681 GB, free: 56.33 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.78e-05/11.45, allocations: 23.27 kB / 3.681 GB, free: 56.33 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.132/11.58, allocations: 44.37 MB / 3.725 GB, free: 28.99 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009887/11.58, allocations: 367.2 kB / 3.725 GB, free: 28.96 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/11.58, allocations: 203 kB / 3.725 GB, free: 28.95 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07595/11.66, allocations: 24.29 MB / 3.749 GB, free: 29.38 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.749e-05/11.66, allocations: 42.3 kB / 3.749 GB, free: 29.34 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=42): time 3.166e-06/11.66, allocations: 4 kB / 3.749 GB, free: 29.33 MB / 0.5108 GB Notification: Performance of matching and sorting (n=42): time 0.004151/11.66, allocations: 0.8469 MB / 3.75 GB, free: 29.25 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/11.66, allocations: 106.8 kB / 3.75 GB, free: 29.12 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006877/11.66, allocations: 403.4 kB / 3.75 GB, free: 29.01 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 7.741e-05/11.66, allocations: 25.7 kB / 3.75 GB, free: 28.98 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/11.66, allocations: 393.8 kB / 3.751 GB, free: 28.72 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.000147/11.66, allocations: 140.1 kB / 3.751 GB, free: 28.63 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/11.66, allocations: 0 / 3.751 GB, free: 28.63 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001347/11.66, allocations: 332.7 kB / 3.751 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004038/11.67, allocations: 171.6 kB / 3.751 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/11.67, allocations: 349.8 kB / 3.752 GB, free: 28.11 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/11.67, allocations: 309.9 kB / 3.752 GB, free: 28.1 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/11.67, allocations: 0 / 3.752 GB, free: 28.1 MB / 0.5108 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00278/11.67, allocations: 0.7016 MB / 3.753 GB, free: 28.03 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007571/11.67, allocations: 2.01 MB / 3.754 GB, free: 25.93 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/11.67, allocations: 11.89 kB / 3.754 GB, free: 25.92 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/11.67, allocations: 176.3 kB / 3.755 GB, free: 25.91 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00097/11.67, allocations: 138.8 kB / 3.755 GB, free: 25.91 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/11.68, allocations: 0.8271 MB / 3.756 GB, free: 25.38 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001445/11.68, allocations: 125.2 kB / 3.756 GB, free: 25.35 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-05/11.68, allocations: 43.11 kB / 3.756 GB, free: 25.34 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/11.68, allocations: 10.31 kB / 3.756 GB, free: 25.34 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003314/11.68, allocations: 0.6257 MB / 3.756 GB, free: 25.32 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/11.68, allocations: 7.469 kB / 3.756 GB, free: 25.32 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/11.68, allocations: 161.2 kB / 3.757 GB, free: 25.3 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009515/11.68, allocations: 141.9 kB / 3.757 GB, free: 25.3 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009078/11.68, allocations: 0.7115 MB / 3.757 GB, free: 24.78 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/11.68, allocations: 98.56 kB / 3.757 GB, free: 24.75 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.402e-05/11.68, allocations: 34.98 kB / 3.757 GB, free: 24.75 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.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 (58): * Single equations (assignments): 57 * 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.0002828/11.69, allocations: 131.2 kB / 3.758 GB, free: 24.64 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00228/11.69, allocations: 0.521 MB / 3.758 GB, free: 24.57 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/11.69, allocations: 59.25 kB / 3.758 GB, free: 24.54 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004495/11.69, allocations: 2.536 MB / 3.761 GB, free: 24.26 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-05/11.69, allocations: 36.72 kB / 3.761 GB, free: 24.26 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/11.69, allocations: 0 / 3.761 GB, free: 24.26 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/11.69, allocations: 0 / 3.761 GB, free: 24.26 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005838/11.7, allocations: 3.395 MB / 3.764 GB, free: 23.82 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/11.7, allocations: 4.031 kB / 3.764 GB, free: 23.82 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/11.7, allocations: 71 kB / 3.764 GB, free: 23.82 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/11.7, allocations: 1.117 MB / 3.765 GB, free: 23.77 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.559e-05/11.7, allocations: 5.406 kB / 3.765 GB, free: 23.77 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002387/11.7, allocations: 1.637 MB / 3.767 GB, free: 23.21 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/11.7, allocations: 0 / 3.767 GB, free: 23.21 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003407/11.71, allocations: 1.815 MB / 3.769 GB, free: 22.91 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006074/11.71, allocations: 290.3 kB / 3.769 GB, free: 22.73 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/11.71, allocations: 0 / 3.769 GB, free: 22.73 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009462/11.71, allocations: 73.75 kB / 3.769 GB, free: 22.71 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/11.71, allocations: 41.2 kB / 3.769 GB, free: 22.71 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.907e-05/11.71, allocations: 19.59 kB / 3.769 GB, free: 22.71 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0006249/11.71, allocations: 380.5 kB / 3.769 GB, free: 22.62 MB / 0.5108 GB Notification: Performance of sort global known variables: time 4.41e-07/11.71, allocations: 0 / 3.769 GB, free: 22.62 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.006868/11.72, allocations: 1.391 MB / 3.771 GB, free: 22.39 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01428/11.73, allocations: 3.841 MB / 3.774 GB, free: 21.21 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.003047/11.73, allocations: 1.032 MB / 3.775 GB, free: 21.19 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/11.73, allocations: 0 / 3.775 GB, free: 21.19 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/11.73, allocations: 0.6248 MB / 3.776 GB, free: 21.19 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/11.74, allocations: 270.4 kB / 3.776 GB, free: 21.17 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007763/11.75, allocations: 2.095 MB / 3.778 GB, free: 20.52 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007256/11.75, allocations: 1.105 MB / 3.779 GB, free: 19.8 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006997/11.75, allocations: 374.5 kB / 3.78 GB, free: 19.8 MB / 0.5108 GB Notification: Performance of SimCode: time 1.112e-06/11.75, allocations: 2.531 kB / 3.78 GB, free: 19.8 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.057/15.8, allocations: 41.36 MB / 3.82 GB, free: 4.449 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat does not exist to compare? outputFormat=mat