Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.TestValveCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",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.001373/0.001373, allocations: 175.9 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.419/1.419, allocations: 223.2 MB / 241 MB, free: 11.91 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.001134/0.001134, allocations: 94.09 kB / 292.1 MB, free: 10.93 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.38/0.38, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004776/0.0004776, allocations: 8 kB / 460 MB, free: 1.445 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.455/0.4555, allocations: 61.91 MB / 0.5096 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.518/6.974, allocations: 2.778 GB / 3.288 GB, free: 76.98 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/6.974, allocations: 89.75 kB / 3.288 GB, free: 76.89 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.287/9.261, allocations: 0.6466 GB / 3.934 GB, free: 35.31 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.154e-06/9.261, allocations: 0 / 3.934 GB, free: 35.31 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001753/9.262, allocations: 46.27 kB / 3.934 GB, free: 35.3 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01116/9.273, allocations: 2.607 MB / 3.937 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/9.273, allocations: 11.59 kB / 3.937 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008653/9.274, allocations: 180.9 kB / 3.937 GB, free: 33.74 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008617/9.282, allocations: 0.9493 MB / 3.938 GB, free: 33.59 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003134/9.286, allocations: 0.9942 MB / 3.939 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/9.286, allocations: 103.5 kB / 3.939 GB, free: 32.98 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004469/9.286, allocations: 118.9 kB / 3.939 GB, free: 32.94 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006491/9.293, allocations: 2.298 MB / 3.941 GB, free: 31.98 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/9.293, allocations: 7.844 kB / 3.941 GB, free: 31.97 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/9.293, allocations: 58.28 kB / 3.941 GB, free: 31.94 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.897e-05/9.293, allocations: 30.81 kB / 3.941 GB, free: 31.94 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006099/9.299, allocations: 2.187 MB / 3.944 GB, free: 31.41 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0125/9.312, allocations: 10.01 MB / 3.953 GB, free: 23.65 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00471/9.316, allocations: 1.732 MB / 3.955 GB, free: 23.27 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04563/9.362, allocations: 26 MB / 3.98 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.723e-05/9.362, allocations: 47.56 kB / 3.981 GB, free: 14.34 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 2.655e-06/9.362, allocations: 0 / 3.981 GB, free: 14.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=88): time 0.00992/9.372, allocations: 2.934 MB / 3.983 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/9.372, allocations: 270 kB / 3.984 GB, free: 11.08 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/9.374, allocations: 0.9213 MB / 3.985 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001743/9.374, allocations: 41.7 kB / 3.985 GB, free: 10.11 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006263/9.375, allocations: 0.6106 MB / 3.985 GB, free: 9.492 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/9.375, allocations: 305.1 kB / 3.985 GB, free: 9.195 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-05/9.375, allocations: 24 kB / 3.986 GB, free: 9.172 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001621/9.376, allocations: 341.9 kB / 3.986 GB, free: 8.832 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/9.377, allocations: 0.5022 MB / 3.986 GB, free: 8.332 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/9.379, allocations: 0.9084 MB / 3.987 GB, free: 7.242 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/9.38, allocations: 0.5756 MB / 3.988 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/9.38, allocations: 4 kB / 3.988 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004383/9.385, allocations: 1.543 MB / 3.989 GB, free: 5.113 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002251/9.387, allocations: 4.468 MB / 3.994 GB, free: 336 kB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.847e-05/9.387, allocations: 12 kB / 3.994 GB, free: 324 kB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.295e-05/9.387, allocations: 20 kB / 3.994 GB, free: 304 kB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3631/9.75, allocations: 351.5 kB / 3.994 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.799e-05/9.75, allocations: 28.02 kB / 3.994 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/9.752, allocations: 242.7 kB / 3.994 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001967/9.753, allocations: 72.84 kB / 3.994 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/9.753, allocations: 6.125 kB / 3.994 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003564/9.756, allocations: 1.379 MB / 3.996 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/9.756, allocations: 16.73 kB / 3.996 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/9.756, allocations: 19.38 kB / 3.996 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/9.757, allocations: 357.3 kB / 3.996 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.192e-05/9.757, allocations: 26.16 kB / 3.996 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/9.759, allocations: 227.1 kB / 3.996 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/9.759, allocations: 60.69 kB / 3.996 GB, free: 59.3 MB / 0.5573 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.0008526/9.76, allocations: 392.3 kB / 3.997 GB, free: 59.11 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003207/9.76, allocations: 141.7 kB / 3.997 GB, free: 59.11 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007749/9.768, allocations: 6.795 MB / 4.004 GB, free: 58.45 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.454e-05/9.768, allocations: 82.39 kB / 4.004 GB, free: 58.45 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/9.768, allocations: 0 / 4.004 GB, free: 58.45 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/9.768, allocations: 6.797 kB / 4.004 GB, free: 58.45 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004381/9.773, allocations: 3.286 MB / 4.007 GB, free: 58.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/9.773, allocations: 0 / 4.007 GB, free: 58.04 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/9.774, allocations: 309.8 kB / 4.007 GB, free: 58.04 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.624e-05/9.774, allocations: 9.812 kB / 4.007 GB, free: 58.04 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.003e-05/9.774, allocations: 29.39 kB / 4.007 GB, free: 58.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/9.774, allocations: 3.5 kB / 4.007 GB, free: 58.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/9.774, allocations: 0 / 4.007 GB, free: 58.04 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00438/9.778, allocations: 3.119 MB / 4.01 GB, free: 57.58 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/9.78, allocations: 0.9031 MB / 4.011 GB, free: 57.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/9.78, allocations: 22.88 kB / 4.011 GB, free: 57.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/9.781, allocations: 150 kB / 4.011 GB, free: 57.18 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/9.782, allocations: 111.5 kB / 4.011 GB, free: 57.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.449e-05/9.782, allocations: 43.56 kB / 4.011 GB, free: 57.18 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002049/9.784, allocations: 1.534 MB / 4.013 GB, free: 57.03 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.3e-07/9.784, allocations: 2.406 kB / 4.013 GB, free: 57.03 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008683/9.792, allocations: 1.824 MB / 4.015 GB, free: 56.94 MB / 0.5573 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.01296/9.805, allocations: 5.541 MB / 4.02 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00566/9.811, allocations: 2.67 MB / 4.023 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.403e-06/9.811, allocations: 3.875 kB / 4.023 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002273/9.813, allocations: 1.541 MB / 4.024 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004474/9.818, allocations: 0.7862 MB / 4.025 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02788/9.846, allocations: 20.47 MB / 4.045 GB, free: 43.43 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001856/9.848, allocations: 1.865 MB / 4.047 GB, free: 42.69 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004179/9.852, allocations: 2.109 MB / 4.049 GB, free: 42.66 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/9.853, allocations: 1.105 MB / 4.05 GB, free: 42.66 MB / 0.5573 GB Notification: Performance of SimCode: time 1.272e-06/9.853, allocations: 5.031 kB / 4.05 GB, free: 42.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1579/10.01, allocations: 88.8 MB / 4.137 GB, free: 38.23 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/10.01, allocations: 236.1 kB / 4.137 GB, free: 37.99 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.49/16.5, allocations: 0 / 4.137 GB, free: 37.99 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat