Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001073, allocations: 196.8 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.231/1.231, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008207/0.0008208, allocations: 89.16 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1799/0.1799, allocations: 45.15 MB / 389.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.77e-05/2.773e-05, allocations: 8 kB / 460.5 MB, free: 69.88 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09681, allocations: 63.25 MB / 0.5115 GB, free: 6.656 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.439/5.536, allocations: 2.788 GB / 3.3 GB, free: 69.33 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/5.536, allocations: 83.95 kB / 3.3 GB, free: 69.25 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.58/7.116, allocations: 443.8 MB / 3.733 GB, free: 62.39 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.853e-06/7.116, allocations: 3.875 kB / 3.733 GB, free: 62.39 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.259e-05/7.116, allocations: 16 kB / 3.733 GB, free: 62.37 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.007455/7.124, allocations: 1.763 MB / 3.735 GB, free: 60.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/7.124, allocations: 8.031 kB / 3.735 GB, free: 60.57 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002708/7.124, allocations: 102.5 kB / 3.735 GB, free: 60.46 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002702/7.127, allocations: 325.4 kB / 3.735 GB, free: 60.14 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/7.128, allocations: 0.5513 MB / 3.736 GB, free: 59.56 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.602e-05/7.128, allocations: 57.22 kB / 3.736 GB, free: 59.51 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/7.128, allocations: 60.53 kB / 3.736 GB, free: 59.45 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002073/7.131, allocations: 0.9556 MB / 3.737 GB, free: 58.44 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/7.131, allocations: 7.891 kB / 3.737 GB, free: 58.43 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.541e-05/7.131, allocations: 31.98 kB / 3.737 GB, free: 58.4 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.192e-05/7.131, allocations: 25.25 kB / 3.737 GB, free: 58.38 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/7.132, allocations: 0.8011 MB / 3.738 GB, free: 57.58 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.00444/7.137, allocations: 4.458 MB / 3.742 GB, free: 52.78 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/7.138, allocations: 0.7003 MB / 3.743 GB, free: 52.08 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/7.139, allocations: 230.1 kB / 3.743 GB, free: 51.85 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4484/7.587, allocations: 62.01 MB / 3.803 GB, free: 70.78 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/7.587, allocations: 36.62 kB / 3.804 GB, free: 70.74 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=48): time 2.955e-06/7.587, allocations: 0 / 3.804 GB, free: 70.74 MB / 0.5417 GB Notification: Performance of matching and sorting (n=52): time 0.004879/7.592, allocations: 1.866 MB / 3.805 GB, free: 70.41 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/7.592, allocations: 114.8 kB / 3.805 GB, free: 70.28 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005282/7.593, allocations: 460.2 kB / 3.806 GB, free: 70.16 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/7.593, allocations: 36.08 kB / 3.806 GB, free: 70.13 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/7.593, allocations: 324 kB / 3.806 GB, free: 69.99 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/7.593, allocations: 181.7 kB / 3.806 GB, free: 69.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/7.593, allocations: 9.625 kB / 3.806 GB, free: 69.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001029/7.593, allocations: 371.9 kB / 3.807 GB, free: 69.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/7.594, allocations: 191.7 kB / 3.807 GB, free: 69.59 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/7.594, allocations: 357 kB / 3.807 GB, free: 69.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/7.594, allocations: 237.3 kB / 3.808 GB, free: 69.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/7.594, allocations: 3.906 kB / 3.808 GB, free: 69.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001554/7.596, allocations: 0.8173 MB / 3.808 GB, free: 69.32 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003833/7.596, allocations: 1.828 MB / 3.81 GB, free: 67.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/7.596, allocations: 4.844 kB / 3.81 GB, free: 67.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00179/7.598, allocations: 401.7 kB / 3.81 GB, free: 67.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005147/7.599, allocations: 137.9 kB / 3.811 GB, free: 67.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000965/7.6, allocations: 0.864 MB / 3.811 GB, free: 66.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006907/7.6, allocations: 97.19 kB / 3.812 GB, free: 66.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.891e-05/7.6, allocations: 34.75 kB / 3.812 GB, free: 66.88 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/7.6, allocations: 7.734 kB / 3.812 GB, free: 66.87 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001387/7.602, allocations: 0.6986 MB / 3.812 GB, free: 66.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/7.602, allocations: 8.641 kB / 3.812 GB, free: 66.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009838/7.603, allocations: 280 kB / 3.813 GB, free: 66.83 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004844/7.603, allocations: 137.1 kB / 3.813 GB, free: 66.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007306/7.604, allocations: 0.8334 MB / 3.814 GB, free: 66.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005896/7.605, allocations: 81.77 kB / 3.814 GB, free: 66.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.576e-05/7.605, allocations: 33.41 kB / 3.814 GB, free: 66.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (54): * Single equations (assignments): 53 * 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 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0001731/7.605, allocations: 149.8 kB / 3.814 GB, free: 66.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/7.605, allocations: 68 kB / 3.814 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003389/7.608, allocations: 2.664 MB / 3.816 GB, free: 65.88 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-05/7.608, allocations: 36.11 kB / 3.816 GB, free: 65.88 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/7.609, allocations: 2.531 kB / 3.816 GB, free: 65.88 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/7.609, allocations: 0 / 3.816 GB, free: 65.88 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004642/7.613, allocations: 3.724 MB / 3.82 GB, free: 65.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/7.613, allocations: 4.938 kB / 3.82 GB, free: 65.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006167/7.614, allocations: 153 kB / 3.82 GB, free: 65.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003523/7.614, allocations: 97.78 kB / 3.82 GB, free: 65.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/7.614, allocations: 14.5 kB / 3.82 GB, free: 65.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005878/7.615, allocations: 1.134 MB / 3.821 GB, free: 64.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/7.615, allocations: 1.281 kB / 3.821 GB, free: 64.42 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002676/7.618, allocations: 2.108 MB / 3.824 GB, free: 64.12 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004503/7.618, allocations: 364.5 kB / 3.824 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.843e-05/7.618, allocations: 11.42 kB / 3.824 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005406/7.619, allocations: 72.47 kB / 3.824 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/7.619, allocations: 59 kB / 3.824 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.286e-05/7.619, allocations: 31.73 kB / 3.824 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006066/7.619, allocations: 0.5483 MB / 3.825 GB, free: 63.86 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.81e-07/7.619, allocations: 0 / 3.825 GB, free: 63.86 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006074/7.626, allocations: 1.433 MB / 3.826 GB, free: 63.86 MB / 0.5417 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: 21 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse12.phase,$cse12.region,$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 (62): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00922/7.635, allocations: 4.276 MB / 3.83 GB, free: 62.97 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002112/7.637, allocations: 1.221 MB / 3.831 GB, free: 62.94 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/7.637, allocations: 1.969 kB / 3.831 GB, free: 62.94 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008329/7.638, allocations: 0.6806 MB / 3.832 GB, free: 62.94 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/7.64, allocations: 346.2 kB / 3.832 GB, free: 62.93 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005887/7.646, allocations: 2.431 MB / 3.835 GB, free: 62.42 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/7.646, allocations: 1.155 MB / 3.836 GB, free: 61.71 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001101/7.647, allocations: 0.6945 MB / 3.837 GB, free: 61.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004514/7.648, allocations: 438.8 kB / 3.837 GB, free: 61.69 MB / 0.5417 GB Notification: Performance of SimCode: time 9.52e-07/7.648, allocations: 2.844 kB / 3.837 GB, free: 61.69 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08489/7.732, allocations: 59.66 MB / 3.895 GB, free: 59.31 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001675/7.733, allocations: 235.1 kB / 3.895 GB, free: 59 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.697/11.43, allocations: 0 / 3.895 GB, free: 59 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat does not exist to compare? outputFormat=mat