Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00193/0.00193, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.2 MB / 245 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009594/0.0009594, allocations: 96.28 kB / 297.2 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3681/0.3681, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003706, allocations: 8 kB / 468.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.415, allocations: 63.25 MB / 0.5193 GB, free: 37.52 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.189/7.604, allocations: 2.779 GB / 3.298 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/7.604, allocations: 94.09 kB / 3.298 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.206/9.81, allocations: 0.6467 GB / 3.945 GB, free: 50.5 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.205e-06/9.81, allocations: 0 / 3.945 GB, free: 50.5 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.035e-05/9.81, allocations: 42.78 kB / 3.945 GB, free: 50.5 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009555/9.82, allocations: 2.604 MB / 3.948 GB, free: 49.28 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/9.82, allocations: 13.19 kB / 3.948 GB, free: 49.28 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006544/9.82, allocations: 182.8 kB / 3.948 GB, free: 49.24 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008329/9.829, allocations: 0.9436 MB / 3.949 GB, free: 49.16 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/9.831, allocations: 1.008 MB / 3.95 GB, free: 48.83 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/9.832, allocations: 99.88 kB / 3.95 GB, free: 48.83 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001908/9.832, allocations: 111.4 kB / 3.95 GB, free: 48.83 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005486/9.837, allocations: 2.296 MB / 3.952 GB, free: 48.39 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/9.837, allocations: 10.27 kB / 3.952 GB, free: 48.38 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/9.837, allocations: 56.78 kB / 3.952 GB, free: 48.38 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/9.837, allocations: 31.25 kB / 3.952 GB, free: 48.38 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005473/9.843, allocations: 2.191 MB / 3.954 GB, free: 48.37 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/9.854, allocations: 10.01 MB / 3.964 GB, free: 41.74 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004794/9.859, allocations: 1.728 MB / 3.966 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04621/9.905, allocations: 28.56 MB / 3.994 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/9.905, allocations: 49.59 kB / 3.994 GB, free: 23.68 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 2.685e-06/9.905, allocations: 0 / 3.994 GB, free: 23.68 MB / 0.5573 GB Notification: Performance of matching and sorting (n=88): time 0.008908/9.914, allocations: 2.931 MB / 3.997 GB, free: 23.51 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.941e-05/9.914, allocations: 272.8 kB / 3.997 GB, free: 23.2 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/9.916, allocations: 0.911 MB / 3.998 GB, free: 23.05 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001287/9.916, allocations: 42.92 kB / 3.998 GB, free: 23.02 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004857/9.916, allocations: 0.616 MB / 3.998 GB, free: 22.75 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002735/9.917, allocations: 301.6 kB / 3.999 GB, free: 22.56 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.561e-05/9.917, allocations: 22.25 kB / 3.999 GB, free: 22.56 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 8.88e-05/9.917, allocations: 349.7 kB / 3.999 GB, free: 22.25 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/9.918, allocations: 0.4931 MB / 4 GB, free: 22.24 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/9.919, allocations: 0.9133 MB / 4 GB, free: 21.58 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/9.921, allocations: 0.581 MB / 4.001 GB, free: 21.37 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/9.921, allocations: 3.938 kB / 4.001 GB, free: 21.37 MB / 0.5573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003489/9.924, allocations: 1.544 MB / 4.003 GB, free: 20.82 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002157/9.926, allocations: 4.472 MB / 4.007 GB, free: 32.07 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.581e-05/9.926, allocations: 10.66 kB / 4.007 GB, free: 32.07 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.86e-05/9.927, allocations: 19.59 kB / 4.007 GB, free: 32.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/9.928, allocations: 357.6 kB / 4.007 GB, free: 32.03 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.859e-05/9.928, allocations: 25.28 kB / 4.007 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/9.93, allocations: 250.5 kB / 4.008 GB, free: 31.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/9.93, allocations: 68.5 kB / 4.008 GB, free: 31.9 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/9.93, allocations: 3.625 kB / 4.008 GB, free: 31.9 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002971/9.933, allocations: 1.377 MB / 4.009 GB, free: 31.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/9.933, allocations: 11.44 kB / 4.009 GB, free: 31.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/9.933, allocations: 21.5 kB / 4.009 GB, free: 31.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/9.934, allocations: 358.4 kB / 4.009 GB, free: 31.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.288e-05/9.934, allocations: 27.27 kB / 4.009 GB, free: 31.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/9.935, allocations: 227.3 kB / 4.01 GB, free: 31.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/9.936, allocations: 68.2 kB / 4.01 GB, free: 31.29 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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.0008801/9.936, allocations: 393.4 kB / 4.01 GB, free: 30.98 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003908/9.937, allocations: 137 kB / 4.01 GB, free: 30.91 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007866/9.945, allocations: 6.794 MB / 4.017 GB, free: 27.82 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.146e-05/9.945, allocations: 85.14 kB / 4.017 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/9.945, allocations: 0 / 4.017 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/9.945, allocations: 3.469 kB / 4.017 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/9.949, allocations: 3.282 MB / 4.02 GB, free: 26.24 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/9.949, allocations: 0 / 4.02 GB, free: 26.24 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/9.95, allocations: 315.7 kB / 4.02 GB, free: 26.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-05/9.95, allocations: 7.094 kB / 4.02 GB, free: 26.21 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.53e-05/9.95, allocations: 27.44 kB / 4.02 GB, free: 26.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.367e-06/9.951, allocations: 3.812 kB / 4.02 GB, free: 26.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/9.951, allocations: 0 / 4.02 GB, free: 26.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004561/9.955, allocations: 3.123 MB / 4.023 GB, free: 24.82 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/9.957, allocations: 0.8962 MB / 4.024 GB, free: 24.24 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004987/9.957, allocations: 23.69 kB / 4.024 GB, free: 24.23 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/9.959, allocations: 155.3 kB / 4.024 GB, free: 24.18 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/9.959, allocations: 110.8 kB / 4.025 GB, free: 24.17 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/9.959, allocations: 41.02 kB / 4.025 GB, free: 24.16 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00227/9.961, allocations: 1.535 MB / 4.026 GB, free: 23.57 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/9.961, allocations: 0 / 4.026 GB, free: 23.57 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007829/9.969, allocations: 1.837 MB / 4.028 GB, free: 23.25 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse51.phase,$cse51.region,$cse55.phase,$cse55.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.01428/9.983, allocations: 5.542 MB / 4.033 GB, free: 20.94 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005664/9.989, allocations: 2.677 MB / 4.036 GB, free: 19.75 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/9.989, allocations: 0 / 4.036 GB, free: 19.75 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002088/9.991, allocations: 1.54 MB / 4.037 GB, free: 18.35 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004632/9.996, allocations: 0.7863 MB / 4.038 GB, free: 17.78 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02865/10.02, allocations: 20.48 MB / 4.058 GB, free: 14.05 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001888/10.03, allocations: 1.868 MB / 4.06 GB, free: 12.57 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003572/10.03, allocations: 2.118 MB / 4.062 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/10.03, allocations: 1.105 MB / 4.063 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of SimCode: time 1.373e-06/10.03, allocations: 0 / 4.063 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4971/10.53, allocations: 88.85 MB / 4.15 GB, free: 70.86 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/10.53, allocations: 235.2 kB / 4.15 GB, free: 70.62 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.453/16.98, allocations: 0 / 4.15 GB, free: 70.62 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat