Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",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.001359/0.001358, allocations: 177.8 kB / 8.743 MB, free: 344 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.54/1.54, allocations: 221.5 MB / 230.7 MB, free: 7.57 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.0008584/0.0008583, allocations: 99.45 kB / 281.6 MB, free: 5.32 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.264/0.264, allocations: 44.14 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.486e-05/2.489e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1784, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.508/8.687, allocations: 2.786 GB / 3.281 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/8.687, allocations: 85.06 kB / 3.281 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.548/10.23, allocations: 439.4 MB / 3.71 GB, free: 68.69 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.885e-06/10.23, allocations: 3.969 kB / 3.71 GB, free: 68.69 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.564e-05/10.23, allocations: 18.3 kB / 3.71 GB, free: 68.68 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.006641/10.24, allocations: 1.754 MB / 3.712 GB, free: 67.72 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/10.24, allocations: 14.33 kB / 3.712 GB, free: 67.72 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002555/10.24, allocations: 329.5 kB / 3.713 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/10.25, allocations: 0.5728 MB / 3.713 GB, free: 67.28 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.367e-05/10.25, allocations: 27.25 kB / 3.713 GB, free: 67.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.33e-05/10.25, allocations: 36.64 kB / 3.713 GB, free: 67.27 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009025/10.25, allocations: 0.5271 MB / 3.714 GB, free: 67.09 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009367/10.25, allocations: 0.653 MB / 3.714 GB, free: 66.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/10.25, allocations: 7.562 kB / 3.714 GB, free: 66.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.833e-05/10.25, allocations: 0 / 3.714 GB, free: 66.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/10.25, allocations: 22.66 kB / 3.714 GB, free: 66.72 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.03381/10.28, allocations: 19.53 MB / 3.733 GB, free: 53.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006561/10.28, allocations: 415.9 kB / 3.734 GB, free: 53.69 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/10.28, allocations: 210.3 kB / 3.734 GB, free: 53.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08572/10.37, allocations: 48.14 MB / 3.781 GB, free: 19.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/10.37, allocations: 42.5 kB / 3.781 GB, free: 19.85 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 2.825e-06/10.37, allocations: 0 / 3.781 GB, free: 19.85 MB / 0.5261 GB Notification: Performance of matching and sorting (n=50): time 0.005903/10.37, allocations: 1.784 MB / 3.783 GB, free: 18.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/10.37, allocations: 115.2 kB / 3.783 GB, free: 18.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000442/10.37, allocations: 386.7 kB / 3.783 GB, free: 17.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/10.37, allocations: 29.7 kB / 3.783 GB, free: 17.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/10.37, allocations: 333.9 kB / 3.784 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/10.37, allocations: 162.2 kB / 3.784 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/10.37, allocations: 0 / 3.784 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.523e-05/10.38, allocations: 371.1 kB / 3.784 GB, free: 16.95 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/10.38, allocations: 180.2 kB / 3.784 GB, free: 16.78 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/10.38, allocations: 356.5 kB / 3.785 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/10.38, allocations: 314.7 kB / 3.785 GB, free: 16.12 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/10.38, allocations: 0 / 3.785 GB, free: 16.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002148/10.38, allocations: 0.8554 MB / 3.786 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003337/10.38, allocations: 1.833 MB / 3.788 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/10.38, allocations: 8 kB / 3.788 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/10.38, allocations: 296.1 kB / 3.788 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004727/10.38, allocations: 135.3 kB / 3.788 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/10.38, allocations: 0.95 MB / 3.789 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/10.38, allocations: 79.81 kB / 3.789 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/10.38, allocations: 35.56 kB / 3.789 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/10.38, allocations: 4 kB / 3.789 GB, free: 12.03 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001759/10.38, allocations: 0.703 MB / 3.79 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/10.38, allocations: 4 kB / 3.79 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008486/10.39, allocations: 268.2 kB / 3.79 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/10.39, allocations: 138.4 kB / 3.79 GB, free: 11.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007251/10.39, allocations: 0.8567 MB / 3.791 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000674/10.39, allocations: 81.94 kB / 3.791 GB, free: 10.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/10.39, allocations: 35.8 kB / 3.791 GB, free: 10.14 MB / 0.5261 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.0002128/10.39, allocations: 120.8 kB / 3.791 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001534/10.39, allocations: 0.5694 MB / 3.792 GB, free: 9.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.056e-05/10.39, allocations: 55.34 kB / 3.792 GB, free: 9.445 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003166/10.39, allocations: 2.263 MB / 3.794 GB, free: 23.44 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.167e-05/10.39, allocations: 29.28 kB / 3.794 GB, free: 23.42 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/10.39, allocations: 2.906 kB / 3.794 GB, free: 23.42 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/10.39, allocations: 6.719 kB / 3.794 GB, free: 23.41 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003875/10.4, allocations: 3.126 MB / 3.797 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/10.4, allocations: 0 / 3.797 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005572/10.4, allocations: 145.2 kB / 3.797 GB, free: 20.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002903/10.4, allocations: 105.7 kB / 3.797 GB, free: 20.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/10.4, allocations: 4 kB / 3.797 GB, free: 20.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008333/10.4, allocations: 1.16 MB / 3.798 GB, free: 19.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/10.4, allocations: 0 / 3.798 GB, free: 19.31 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/10.4, allocations: 1.868 MB / 3.8 GB, free: 17.58 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005006/10.4, allocations: 351.5 kB / 3.801 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/10.4, allocations: 0 / 3.801 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000537/10.4, allocations: 58.95 kB / 3.801 GB, free: 17.23 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/10.4, allocations: 58.73 kB / 3.801 GB, free: 17.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/10.4, allocations: 23.7 kB / 3.801 GB, free: 17.18 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005713/10.4, allocations: 495.6 kB / 3.801 GB, free: 16.72 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.4e-07/10.4, allocations: 0 / 3.801 GB, free: 16.72 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006223/10.41, allocations: 1.36 MB / 3.803 GB, free: 15.39 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: 17 ($cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse14.phase,$cse14.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 (58): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01271/10.42, allocations: 4.139 MB / 3.807 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002358/10.42, allocations: 1.096 MB / 3.808 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/10.42, allocations: 0 / 3.808 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009465/10.42, allocations: 0.5847 MB / 3.808 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/10.43, allocations: 273.2 kB / 3.808 GB, free: 9.98 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006989/10.43, allocations: 2.196 MB / 3.811 GB, free: 7.984 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/10.43, allocations: 1.116 MB / 3.812 GB, free: 7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001199/10.44, allocations: 0.706 MB / 3.812 GB, free: 6.578 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004701/10.44, allocations: 410.1 kB / 3.813 GB, free: 6.215 MB / 0.5417 GB Notification: Performance of SimCode: time 1.533e-06/10.44, allocations: 0 / 3.813 GB, free: 6.215 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.467/10.9, allocations: 49.5 MB / 3.861 GB, free: 77.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/10.9, allocations: 193.8 kB / 3.861 GB, free: 77.51 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.609/14.51, allocations: 1.688 kB / 3.861 GB, free: 77.51 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat does not exist to compare? outputFormat=mat