Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009847/0.0009847, allocations: 89.62 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1865/0.1865, allocations: 45.16 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.662e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 63.24 MB / 0.5115 GB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.22/6.321, allocations: 2.793 GB / 3.305 GB, free: 144.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/6.322, allocations: 85.91 kB / 3.305 GB, free: 144.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.424/7.745, allocations: 444.5 MB / 3.739 GB, free: 72.07 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.623e-06/7.745, allocations: 0.75 kB / 3.739 GB, free: 72.07 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.188e-05/7.746, allocations: 23.53 kB / 3.739 GB, free: 72.07 MB / 0.5417 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.006103/7.752, allocations: 1.778 MB / 3.741 GB, free: 71.41 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/7.752, allocations: 9.703 kB / 3.741 GB, free: 71.41 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/7.752, allocations: 99.12 kB / 3.741 GB, free: 71.38 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002518/7.754, allocations: 352.1 kB / 3.741 GB, free: 71.34 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/7.755, allocations: 0.5765 MB / 3.742 GB, free: 71.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/7.755, allocations: 46.34 kB / 3.742 GB, free: 71.1 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.362e-05/7.756, allocations: 56.34 kB / 3.742 GB, free: 71.1 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/7.757, allocations: 0.9946 MB / 3.743 GB, free: 70.89 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/7.757, allocations: 5.812 kB / 3.743 GB, free: 70.89 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.63e-05/7.757, allocations: 23.14 kB / 3.743 GB, free: 70.89 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.562e-05/7.758, allocations: 25.88 kB / 3.743 GB, free: 70.89 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/7.759, allocations: 0.8154 MB / 3.743 GB, free: 70.89 MB / 0.5417 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.0049/7.764, allocations: 4.92 MB / 3.748 GB, free: 67.52 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/7.766, allocations: 0.7061 MB / 3.749 GB, free: 67.5 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004152/7.767, allocations: 228.8 kB / 3.749 GB, free: 67.49 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04555/7.812, allocations: 26.85 MB / 3.775 GB, free: 50.12 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/7.812, allocations: 37.25 kB / 3.775 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=46): time 2.545e-06/7.812, allocations: 3.594 kB / 3.775 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.003624/7.816, allocations: 1.064 MB / 3.776 GB, free: 50 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/7.816, allocations: 110 kB / 3.777 GB, free: 49.88 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006897/7.817, allocations: 450.2 kB / 3.777 GB, free: 49.76 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.083e-05/7.817, allocations: 41.64 kB / 3.777 GB, free: 49.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/7.817, allocations: 336.5 kB / 3.777 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/7.817, allocations: 161.2 kB / 3.778 GB, free: 49.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/7.817, allocations: 10.06 kB / 3.778 GB, free: 49.5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001056/7.817, allocations: 370.3 kB / 3.778 GB, free: 49.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/7.818, allocations: 171.8 kB / 3.778 GB, free: 49.18 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/7.818, allocations: 353.5 kB / 3.778 GB, free: 48.98 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/7.818, allocations: 221.5 kB / 3.779 GB, free: 48.97 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/7.818, allocations: 0 / 3.779 GB, free: 48.97 MB / 0.5417 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001148/7.819, allocations: 0.6817 MB / 3.779 GB, free: 48.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003977/7.82, allocations: 2.001 MB / 3.781 GB, free: 46.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/7.82, allocations: 13.88 kB / 3.781 GB, free: 46.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/7.821, allocations: 255.1 kB / 3.781 GB, free: 46.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/7.822, allocations: 142.6 kB / 3.782 GB, free: 46.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008983/7.822, allocations: 0.7525 MB / 3.782 GB, free: 46.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008391/7.823, allocations: 127 kB / 3.782 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/7.823, allocations: 33.78 kB / 3.782 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/7.823, allocations: 3.969 kB / 3.782 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001069/7.825, allocations: 0.6116 MB / 3.783 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/7.825, allocations: 3.875 kB / 3.783 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007881/7.825, allocations: 185.3 kB / 3.783 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004545/7.826, allocations: 148.3 kB / 3.783 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005148/7.826, allocations: 0.7028 MB / 3.784 GB, free: 45.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007459/7.827, allocations: 110.3 kB / 3.784 GB, free: 45.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.135e-05/7.827, allocations: 36.72 kB / 3.784 GB, free: 45.69 MB / 0.5417 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 (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 (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.0001768/7.827, allocations: 142.3 kB / 3.784 GB, free: 45.58 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/7.828, allocations: 59.03 kB / 3.784 GB, free: 45.55 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/7.83, allocations: 3.041 MB / 3.787 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.401e-05/7.831, allocations: 44.16 kB / 3.787 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/7.831, allocations: 0 / 3.787 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/7.831, allocations: 3.375 kB / 3.787 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/7.832, allocations: 1.472 MB / 3.789 GB, free: 44.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/7.832, allocations: 0 / 3.789 GB, free: 44.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003376/7.833, allocations: 96.69 kB / 3.789 GB, free: 44.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/7.834, allocations: 1.166 MB / 3.79 GB, free: 44.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/7.834, allocations: 13.66 kB / 3.79 GB, free: 44.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/7.836, allocations: 1.489 MB / 3.792 GB, free: 44.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/7.836, allocations: 3.781 kB / 3.792 GB, free: 44.36 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0021/7.838, allocations: 1.992 MB / 3.794 GB, free: 44.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005233/7.838, allocations: 341.2 kB / 3.794 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/7.838, allocations: 9.75 kB / 3.794 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006831/7.839, allocations: 83.36 kB / 3.794 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/7.839, allocations: 53.7 kB / 3.794 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.601e-05/7.839, allocations: 20.72 kB / 3.794 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005108/7.84, allocations: 460.9 kB / 3.794 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.11e-07/7.84, allocations: 0 / 3.794 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006292/7.846, allocations: 1.448 MB / 3.796 GB, free: 43.51 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: 25 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.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 (45): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01152/7.858, allocations: 3.855 MB / 3.8 GB, free: 42.49 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002589/7.86, allocations: 1.174 MB / 3.801 GB, free: 42.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/7.86, allocations: 3.562 kB / 3.801 GB, free: 42.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/7.861, allocations: 0.7426 MB / 3.802 GB, free: 42.45 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001929/7.863, allocations: 322.5 kB / 3.802 GB, free: 42.45 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006533/7.87, allocations: 2.368 MB / 3.804 GB, free: 41.82 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005764/7.87, allocations: 1.17 MB / 3.805 GB, free: 41.11 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001253/7.872, allocations: 0.6786 MB / 3.806 GB, free: 41.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004307/7.872, allocations: 414.3 kB / 3.806 GB, free: 41.09 MB / 0.5417 GB Notification: Performance of SimCode: time 1.173e-06/7.872, allocations: 0 / 3.806 GB, free: 41.09 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09409/7.966, allocations: 58.27 MB / 3.863 GB, free: 38.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/7.967, allocations: 232.7 kB / 3.863 GB, free: 38.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.627/11.59, allocations: 6.047 kB / 3.863 GB, free: 38.16 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpNPSH.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat does not exist to compare? outputFormat=mat