Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",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.001101/0.001101, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.2 MB / 241 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000979/0.000979, allocations: 90.23 kB / 292.1 MB, free: 10.69 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.3685/0.3685, allocations: 44.21 MB / 387.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.00032, allocations: 8 kB / 460 MB, free: 1.414 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3573, allocations: 61.9 MB / 0.5096 GB, free: 37.79 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.309/7.667, allocations: 2.777 GB / 3.287 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/7.667, allocations: 95.5 kB / 3.287 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.771/9.438, allocations: 0.5091 GB / 3.796 GB, free: 42.63 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.853e-06/9.438, allocations: 0 / 3.796 GB, free: 42.63 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001083/9.438, allocations: 34.03 kB / 3.796 GB, free: 42.62 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.008461/9.447, allocations: 2.182 MB / 3.798 GB, free: 41.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/9.447, allocations: 9.594 kB / 3.798 GB, free: 41.39 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004875/9.447, allocations: 137.6 kB / 3.798 GB, free: 41.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005989/9.453, allocations: 0.7238 MB / 3.799 GB, free: 41.18 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001953/9.455, allocations: 0.8094 MB / 3.8 GB, free: 40.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/9.455, allocations: 73.75 kB / 3.8 GB, free: 40.67 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/9.456, allocations: 92.53 kB / 3.8 GB, free: 40.64 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004518/9.46, allocations: 1.742 MB / 3.802 GB, free: 39.92 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/9.46, allocations: 6.781 kB / 3.802 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/9.46, allocations: 45.69 kB / 3.802 GB, free: 39.88 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/9.46, allocations: 24.34 kB / 3.802 GB, free: 39.88 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004322/9.465, allocations: 1.653 MB / 3.803 GB, free: 39.49 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009506/9.474, allocations: 7.558 MB / 3.811 GB, free: 33.62 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00369/9.478, allocations: 1.309 MB / 3.812 GB, free: 33.33 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04023/9.518, allocations: 24.17 MB / 3.836 GB, free: 17.69 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/9.518, allocations: 42 kB / 3.836 GB, free: 17.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=67): time 3.767e-06/9.518, allocations: 7.938 kB / 3.836 GB, free: 17.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67): time 0.007207/9.526, allocations: 2.228 MB / 3.838 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/9.526, allocations: 221.4 kB / 3.838 GB, free: 16.85 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/9.527, allocations: 0.7256 MB / 3.839 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001355/9.527, allocations: 41.17 kB / 3.839 GB, free: 16.48 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003234/9.527, allocations: 482.5 kB / 3.839 GB, free: 16.11 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000224/9.528, allocations: 224.2 kB / 3.84 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/9.528, allocations: 21.25 kB / 3.84 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.49e-05/9.528, allocations: 340.5 kB / 3.84 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009281/9.529, allocations: 395.2 kB / 3.84 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/9.53, allocations: 0.6813 MB / 3.841 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/9.531, allocations: 454.4 kB / 3.841 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/9.531, allocations: 3.938 kB / 3.841 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002658/9.533, allocations: 1.183 MB / 3.843 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001788/9.535, allocations: 3.232 MB / 3.846 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/9.535, allocations: 7.656 kB / 3.846 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.706e-05/9.535, allocations: 15.5 kB / 3.846 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009495/9.536, allocations: 271.7 kB / 3.846 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-05/9.536, allocations: 18.22 kB / 3.846 GB, free: 26.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/9.538, allocations: 191.1 kB / 3.846 GB, free: 26.85 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/9.538, allocations: 48.92 kB / 3.846 GB, free: 26.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/9.538, allocations: 5.031 kB / 3.846 GB, free: 26.84 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002282/9.54, allocations: 1.061 MB / 3.847 GB, free: 26.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/9.54, allocations: 7.531 kB / 3.847 GB, free: 26.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/9.54, allocations: 18.16 kB / 3.847 GB, free: 26.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008385/9.541, allocations: 265.8 kB / 3.848 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.909e-05/9.541, allocations: 22.16 kB / 3.848 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/9.542, allocations: 176 kB / 3.848 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.619e-05/9.542, allocations: 50.09 kB / 3.848 GB, free: 26.37 MB / 0.5417 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.000743/9.543, allocations: 342.5 kB / 3.848 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/9.543, allocations: 107.2 kB / 3.848 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005807/9.549, allocations: 5.133 MB / 3.853 GB, free: 23.68 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-05/9.549, allocations: 63.48 kB / 3.853 GB, free: 23.66 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/9.549, allocations: 7.891 kB / 3.853 GB, free: 23.65 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/9.549, allocations: 3.891 kB / 3.853 GB, free: 23.65 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002924/9.552, allocations: 2.497 MB / 3.856 GB, free: 22.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/9.552, allocations: 0 / 3.856 GB, free: 22.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000789/9.553, allocations: 235.3 kB / 3.856 GB, free: 22.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.148e-05/9.553, allocations: 3.938 kB / 3.856 GB, free: 22.42 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.228e-05/9.553, allocations: 23.48 kB / 3.856 GB, free: 22.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/9.553, allocations: 3.938 kB / 3.856 GB, free: 22.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/9.553, allocations: 3.938 kB / 3.856 GB, free: 22.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/9.556, allocations: 2.381 MB / 3.858 GB, free: 20.31 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009323/9.557, allocations: 0.7019 MB / 3.859 GB, free: 19.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/9.557, allocations: 19.94 kB / 3.859 GB, free: 19.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/9.559, allocations: 111.3 kB / 3.859 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/9.559, allocations: 90.23 kB / 3.859 GB, free: 19.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.619e-05/9.559, allocations: 27.75 kB / 3.859 GB, free: 19.54 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00157/9.56, allocations: 1.191 MB / 3.86 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.1e-07/9.56, allocations: 0 / 3.86 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007197/9.568, allocations: 1.624 MB / 3.862 GB, free: 16.9 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: 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.0123/9.58, allocations: 4.619 MB / 3.867 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004366/9.584, allocations: 2.04 MB / 3.869 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/9.584, allocations: 4 kB / 3.869 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001677/9.586, allocations: 1.161 MB / 3.87 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003477/9.59, allocations: 0.6004 MB / 3.87 GB, free: 9.605 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/9.605, allocations: 11.83 MB / 3.882 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/9.606, allocations: 1.57 MB / 3.883 GB, free: 12.79 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00268/9.609, allocations: 1.592 MB / 3.885 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/9.61, allocations: 0.8063 MB / 3.886 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of SimCode: time 1.423e-06/9.61, allocations: 0 / 3.886 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4035/10.01, allocations: 72.44 MB / 3.956 GB, free: 65.04 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/10.01, allocations: 245.9 kB / 3.957 GB, free: 64.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.775/14.79, allocations: 0 / 3.957 GB, free: 64.8 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat