Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",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.001583/0.001588, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001174/0.001174, allocations: 92.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5481/0.5481, allocations: 43.55 MB / 362.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006727/0.0006728, allocations: 12 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1505, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.771/8.922, allocations: 2.772 GB / 3.251 GB, free: 33.18 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/8.922, allocations: 93.75 kB / 3.251 GB, free: 33.13 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.939/11.86, allocations: 0.5035 GB / 3.755 GB, free: 44.43 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.294e-06/11.86, allocations: 0 / 3.755 GB, free: 44.43 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001159/11.86, allocations: 33.95 kB / 3.755 GB, free: 44.42 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.01077/11.87, allocations: 2.171 MB / 3.757 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/11.87, allocations: 7.406 kB / 3.757 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005718/11.87, allocations: 142.4 kB / 3.757 GB, free: 43.36 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008728/11.88, allocations: 0.7194 MB / 3.758 GB, free: 43.29 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002542/11.88, allocations: 0.8066 MB / 3.758 GB, free: 43 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/11.88, allocations: 78.16 kB / 3.758 GB, free: 42.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/11.88, allocations: 91.81 kB / 3.758 GB, free: 42.99 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00714/11.89, allocations: 1.747 MB / 3.76 GB, free: 42.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/11.89, allocations: 4.812 kB / 3.76 GB, free: 42.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002052/11.89, allocations: 44.95 kB / 3.76 GB, free: 42.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.521e-05/11.89, allocations: 30.09 kB / 3.76 GB, free: 42.65 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007917/11.9, allocations: 1.653 MB / 3.762 GB, free: 42.64 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01465/11.91, allocations: 7.559 MB / 3.769 GB, free: 37.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006753/11.92, allocations: 1.308 MB / 3.771 GB, free: 37.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07345/11.99, allocations: 24.18 MB / 3.794 GB, free: 22.76 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.597e-05/11.99, allocations: 39.69 kB / 3.794 GB, free: 22.72 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=67): time 3.737e-06/11.99, allocations: 0 / 3.794 GB, free: 22.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=67): time 0.01208/12.01, allocations: 2.229 MB / 3.796 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.451e-05/12.01, allocations: 216.2 kB / 3.797 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/12.01, allocations: 0.7309 MB / 3.797 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001871/12.01, allocations: 39.86 kB / 3.797 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/12.01, allocations: 482.5 kB / 3.798 GB, free: 21.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/12.01, allocations: 227.7 kB / 3.798 GB, free: 21.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.798e-05/12.01, allocations: 21.75 kB / 3.798 GB, free: 21.75 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.219e-05/12.01, allocations: 343.8 kB / 3.798 GB, free: 21.44 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001773/12.01, allocations: 393.7 kB / 3.799 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001959/12.01, allocations: 0.6839 MB / 3.799 GB, free: 21.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00203/12.02, allocations: 451.8 kB / 3.8 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/12.02, allocations: 0 / 3.8 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004684/12.02, allocations: 1.131 MB / 3.801 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001679/12.02, allocations: 3.229 MB / 3.804 GB, free: 33.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.18e-05/12.02, allocations: 7.594 kB / 3.804 GB, free: 33.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.333e-05/12.02, allocations: 13.44 kB / 3.804 GB, free: 33.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002078/12.02, allocations: 274.5 kB / 3.804 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.781e-05/12.02, allocations: 21.91 kB / 3.804 GB, free: 33.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/12.03, allocations: 196.9 kB / 3.805 GB, free: 33.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/12.03, allocations: 57.48 kB / 3.805 GB, free: 33.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/12.03, allocations: 3.438 kB / 3.805 GB, free: 33.48 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00433/12.03, allocations: 1.058 MB / 3.806 GB, free: 33.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/12.03, allocations: 6.812 kB / 3.806 GB, free: 33.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/12.03, allocations: 13.91 kB / 3.806 GB, free: 33.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00183/12.03, allocations: 273.1 kB / 3.806 GB, free: 33.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.406e-05/12.03, allocations: 19.83 kB / 3.806 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/12.03, allocations: 152.5 kB / 3.806 GB, free: 33.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/12.03, allocations: 48.64 kB / 3.806 GB, free: 33.33 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008116/12.04, allocations: 349 kB / 3.806 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003615/12.04, allocations: 108.6 kB / 3.807 GB, free: 33.06 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009124/12.04, allocations: 5.121 MB / 3.812 GB, free: 31.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-05/12.04, allocations: 69.88 kB / 3.812 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/12.04, allocations: 0 / 3.812 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/12.04, allocations: 3.703 kB / 3.812 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003906/12.05, allocations: 2.498 MB / 3.814 GB, free: 30.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/12.05, allocations: 4 kB / 3.814 GB, free: 30.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/12.05, allocations: 232.8 kB / 3.814 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/12.05, allocations: 7.922 kB / 3.814 GB, free: 30.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.613e-05/12.05, allocations: 19.62 kB / 3.814 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/12.05, allocations: 3.094 kB / 3.814 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/12.05, allocations: 7.688 kB / 3.814 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005305/12.06, allocations: 2.383 MB / 3.817 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/12.06, allocations: 0.7025 MB / 3.817 GB, free: 28.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003614/12.06, allocations: 22.44 kB / 3.817 GB, free: 28.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/12.06, allocations: 114.7 kB / 3.817 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/12.06, allocations: 80.8 kB / 3.818 GB, free: 28.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.702e-05/12.06, allocations: 35.59 kB / 3.818 GB, free: 28.84 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002319/12.06, allocations: 1.183 MB / 3.819 GB, free: 28.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.31e-07/12.06, allocations: 0 / 3.819 GB, free: 28.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008178/12.07, allocations: 1.618 MB / 3.82 GB, free: 28.07 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01695/12.09, allocations: 4.617 MB / 3.825 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006719/12.09, allocations: 2.037 MB / 3.827 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/12.09, allocations: 8.031 kB / 3.827 GB, free: 25.44 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002568/12.1, allocations: 1.158 MB / 3.828 GB, free: 24.94 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005594/12.1, allocations: 0.6048 MB / 3.829 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01765/12.12, allocations: 11.88 MB / 3.84 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/12.12, allocations: 1.569 MB / 3.842 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/12.12, allocations: 0.8145 MB / 3.842 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of SimCode: time 1.383e-06/12.12, allocations: 0 / 3.842 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.341/16.46, allocations: 48.92 MB / 3.89 GB, free: 55.01 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat