Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",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.002046/0.002046, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.258/2.258, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 97.02 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.326/0.326, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.723e-05/2.732e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4242, allocations: 58.85 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.255/8.679, allocations: 2.772 GB / 3.238 GB, free: 14.92 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/8.68, allocations: 80.33 kB / 3.238 GB, free: 14.88 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.796/12.48, allocations: 0.6312 GB / 3.869 GB, free: 39.62 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.214e-06/12.48, allocations: 3.125 kB / 3.869 GB, free: 39.62 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001572/12.48, allocations: 39.62 kB / 3.869 GB, free: 39.62 MB / 0.5108 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.0125/12.49, allocations: 2.453 MB / 3.872 GB, free: 38.58 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/12.49, allocations: 11.44 kB / 3.872 GB, free: 38.58 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01138/12.5, allocations: 0.9577 MB / 3.873 GB, free: 38.5 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003473/12.5, allocations: 0.9882 MB / 3.874 GB, free: 38.18 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/12.5, allocations: 50.78 kB / 3.874 GB, free: 38.18 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/12.5, allocations: 67.66 kB / 3.874 GB, free: 38.18 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003435/12.51, allocations: 1.215 MB / 3.875 GB, free: 38.18 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003445/12.51, allocations: 1.435 MB / 3.876 GB, free: 37.74 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.819e-05/12.51, allocations: 5.641 kB / 3.876 GB, free: 37.74 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/12.51, allocations: 6.969 kB / 3.876 GB, free: 37.74 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.369e-05/12.51, allocations: 35.38 kB / 3.876 GB, free: 37.74 MB / 0.5108 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.224/12.74, allocations: 70.54 MB / 3.945 GB, free: 25.8 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/12.74, allocations: 0.8026 MB / 3.946 GB, free: 25.76 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009468/12.74, allocations: 401.3 kB / 3.946 GB, free: 25.75 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 1.315/14.05, allocations: 277.1 MB / 4.217 GB, free: 19.77 MB / 0.6046 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/14.05, allocations: 49.86 kB / 4.217 GB, free: 19.72 MB / 0.6046 GB Notification: Performance of pre-optimization done (n=39): time 5.19e-06/14.05, allocations: 5.484 kB / 4.217 GB, free: 19.72 MB / 0.6046 GB Notification: Performance of matching and sorting (n=39): time 0.007848/14.06, allocations: 1.497 MB / 4.219 GB, free: 19.67 MB / 0.6046 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/14.06, allocations: 264 kB / 4.219 GB, free: 19.36 MB / 0.6046 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/14.06, allocations: 0.9465 MB / 4.22 GB, free: 19.22 MB / 0.6046 GB Notification: Performance of collectPreVariables (initialization): time 0.0001068/14.06, allocations: 27.45 kB / 4.22 GB, free: 19.19 MB / 0.6046 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005474/14.06, allocations: 0.7772 MB / 4.22 GB, free: 18.8 MB / 0.6046 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/14.06, allocations: 142.8 kB / 4.221 GB, free: 18.73 MB / 0.6046 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.921e-05/14.06, allocations: 0 / 4.221 GB, free: 18.73 MB / 0.6046 GB Notification: Performance of setup shared object (initialization): time 0.0001595/14.06, allocations: 354.8 kB / 4.221 GB, free: 18.42 MB / 0.6046 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007917/14.07, allocations: 333 kB / 4.221 GB, free: 18.42 MB / 0.6046 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/14.07, allocations: 0.709 MB / 4.222 GB, free: 17.94 MB / 0.6046 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004597/14.07, allocations: 0.7432 MB / 4.223 GB, free: 17.92 MB / 0.6046 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/14.07, allocations: 3.312 kB / 4.223 GB, free: 17.92 MB / 0.6046 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.006371/14.08, allocations: 1.386 MB / 4.224 GB, free: 17.84 MB / 0.6046 GB Notification: Performance of prepare postOptimizeDAE: time 0.002251/14.08, allocations: 4.453 MB / 4.228 GB, free: 29.17 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/14.08, allocations: 11.44 kB / 4.228 GB, free: 29.17 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.153e-05/14.08, allocations: 20.06 kB / 4.228 GB, free: 29.17 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002511/14.08, allocations: 357 kB / 4.229 GB, free: 29.17 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.683e-05/14.08, allocations: 24.91 kB / 4.229 GB, free: 29.17 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003647/14.09, allocations: 356.3 kB / 4.229 GB, free: 29.11 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001733/14.09, allocations: 71.75 kB / 4.229 GB, free: 29.11 MB / 0.6202 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/14.09, allocations: 5.375 kB / 4.229 GB, free: 29.11 MB / 0.6202 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005144/14.09, allocations: 1.167 MB / 4.23 GB, free: 29.07 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/14.09, allocations: 14.75 kB / 4.23 GB, free: 29.07 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.882e-05/14.09, allocations: 18.22 kB / 4.23 GB, free: 29.07 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002192/14.09, allocations: 357 kB / 4.231 GB, free: 29.07 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.618e-05/14.09, allocations: 23.38 kB / 4.231 GB, free: 29.07 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/14.1, allocations: 230.7 kB / 4.231 GB, free: 29.04 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/14.1, allocations: 67.64 kB / 4.231 GB, free: 29.04 MB / 0.6202 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 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.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 () * 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.0003987/14.1, allocations: 147.3 kB / 4.231 GB, free: 28.93 MB / 0.6202 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003878/14.1, allocations: 0.6948 MB / 4.232 GB, free: 28.82 MB / 0.6202 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/14.1, allocations: 112.4 kB / 4.232 GB, free: 28.77 MB / 0.6202 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002773/14.1, allocations: 1.111 MB / 4.233 GB, free: 28.59 MB / 0.6202 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/14.1, allocations: 3.938 kB / 4.233 GB, free: 28.59 MB / 0.6202 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.363e-06/14.1, allocations: 0 / 4.233 GB, free: 28.59 MB / 0.6202 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/14.1, allocations: 3.891 kB / 4.233 GB, free: 28.59 MB / 0.6202 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004968/14.11, allocations: 2.034 MB / 4.235 GB, free: 28.13 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/14.11, allocations: 3.844 kB / 4.235 GB, free: 28.13 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006572/14.11, allocations: 92.81 kB / 4.235 GB, free: 28.13 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.716e-05/14.11, allocations: 11.95 kB / 4.235 GB, free: 28.12 MB / 0.6202 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/14.11, allocations: 6.594 kB / 4.235 GB, free: 28.11 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.231e-05/14.11, allocations: 17.2 kB / 4.235 GB, free: 28.1 MB / 0.6202 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/14.11, allocations: 5.875 kB / 4.235 GB, free: 28.1 MB / 0.6202 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/14.11, allocations: 0.9507 MB / 4.236 GB, free: 27.16 MB / 0.6202 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/14.11, allocations: 453.4 kB / 4.237 GB, free: 26.86 MB / 0.6202 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004075/14.11, allocations: 8 kB / 4.237 GB, free: 26.86 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001864/14.12, allocations: 100.4 kB / 4.237 GB, free: 26.78 MB / 0.6202 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/14.12, allocations: 44.25 kB / 4.237 GB, free: 26.76 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-05/14.12, allocations: 21.98 kB / 4.237 GB, free: 26.74 MB / 0.6202 GB Notification: Performance of sorting global known variables: time 0.002306/14.12, allocations: 1.156 MB / 4.238 GB, free: 26.07 MB / 0.6202 GB Notification: Performance of sort global known variables: time 8.72e-07/14.12, allocations: 0 / 4.238 GB, free: 26.07 MB / 0.6202 GB Notification: Performance of remove unused functions: time 0.009343/14.13, allocations: 1.756 MB / 4.24 GB, free: 24.53 MB / 0.6202 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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 Backend phase and start with SimCode phase: time 0.01464/14.14, allocations: 4.564 MB / 4.244 GB, free: 20.67 MB / 0.6202 GB Notification: Performance of simCode: created initialization part: time 0.003263/14.15, allocations: 1.187 MB / 4.245 GB, free: 19.99 MB / 0.6202 GB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/14.15, allocations: 4.062 kB / 4.245 GB, free: 19.98 MB / 0.6202 GB Notification: Performance of simCode: created simulation system equations: time 0.0004487/14.15, allocations: 151.9 kB / 4.245 GB, free: 19.9 MB / 0.6202 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004012/14.15, allocations: 412.7 kB / 4.246 GB, free: 19.68 MB / 0.6202 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00938/14.16, allocations: 2.211 MB / 4.248 GB, free: 17.86 MB / 0.6202 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009324/14.16, allocations: 1.246 MB / 4.249 GB, free: 16.82 MB / 0.6202 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/14.16, allocations: 0.5994 MB / 4.25 GB, free: 16.72 MB / 0.6202 GB Notification: Performance of SimCode: time 1.303e-06/14.16, allocations: 4 kB / 4.25 GB, free: 16.71 MB / 0.6202 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.254/18.42, allocations: 49.09 MB / 4.298 GB, free: 146.1 MB / 0.6202 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat