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.002227/0.002227, allocations: 180.9 kB / 13.66 MB, free: 1.664 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.133/2.133, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001127/0.001127, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2887/0.2887, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.032e-05/4.041e-05, allocations: 8 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1265, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.135/8.262, allocations: 2.773 GB / 3.245 GB, free: 64.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003279/8.262, allocations: 91.22 kB / 3.246 GB, free: 64.25 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.455/11.72, allocations: 0.6371 GB / 3.883 GB, free: 18.56 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.823e-06/11.72, allocations: 0 / 3.883 GB, free: 18.56 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001224/11.72, allocations: 39.44 kB / 3.883 GB, free: 18.53 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01104/11.73, allocations: 2.454 MB / 3.885 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/11.73, allocations: 8.031 kB / 3.885 GB, free: 16.04 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005558/11.73, allocations: 177.5 kB / 3.885 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/11.74, allocations: 0.9597 MB / 3.886 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003243/11.74, allocations: 0.9937 MB / 3.887 GB, free: 13.89 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/11.74, allocations: 106.3 kB / 3.887 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002673/11.74, allocations: 112 kB / 3.887 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008059/11.75, allocations: 2.268 MB / 3.89 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.914e-05/11.75, allocations: 3.938 kB / 3.89 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/11.75, allocations: 63.94 kB / 3.89 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.1e-05/11.75, allocations: 28 kB / 3.89 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007451/11.76, allocations: 1.986 MB / 3.892 GB, free: 9.188 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01911/11.78, allocations: 10 MB / 3.901 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007066/11.79, allocations: 1.571 MB / 3.903 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/11.79, allocations: 452.4 kB / 3.903 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5221/12.31, allocations: 26.07 MB / 3.929 GB, free: 41.51 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/12.31, allocations: 45.84 kB / 3.929 GB, free: 41.47 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 3.998e-06/12.31, allocations: 0 / 3.929 GB, free: 41.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88): time 0.01198/12.32, allocations: 2.355 MB / 3.931 GB, free: 41.42 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/12.32, allocations: 269.3 kB / 3.931 GB, free: 41.11 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002115/12.32, allocations: 0.9078 MB / 3.932 GB, free: 40.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002924/12.33, allocations: 45.86 kB / 3.932 GB, free: 40.92 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005116/12.33, allocations: 0.5943 MB / 3.933 GB, free: 40.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003969/12.33, allocations: 295.2 kB / 3.933 GB, free: 40.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.911e-05/12.33, allocations: 20.78 kB / 3.933 GB, free: 40.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001213/12.33, allocations: 357.2 kB / 3.934 GB, free: 40.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/12.33, allocations: 346.8 kB / 3.934 GB, free: 40.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/12.33, allocations: 0.7392 MB / 3.935 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/12.33, allocations: 424.5 kB / 3.935 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/12.33, allocations: 4.531 kB / 3.935 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003497/12.33, allocations: 1.13 MB / 3.936 GB, free: 39.63 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00103/12.33, allocations: 4.451 MB / 3.94 GB, free: 35.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.615e-05/12.33, allocations: 11.38 kB / 3.941 GB, free: 35.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.833e-05/12.33, allocations: 19.25 kB / 3.941 GB, free: 35.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00292/12.34, allocations: 358.4 kB / 3.941 GB, free: 35.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.75e-05/12.34, allocations: 25.41 kB / 3.941 GB, free: 35.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002916/12.34, allocations: 247.9 kB / 3.941 GB, free: 34.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003074/12.34, allocations: 68.67 kB / 3.941 GB, free: 34.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/12.34, allocations: 4.094 kB / 3.941 GB, free: 34.96 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003287/12.34, allocations: 1.057 MB / 3.942 GB, free: 34.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/12.34, allocations: 15.52 kB / 3.942 GB, free: 34.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.03e-05/12.34, allocations: 22.11 kB / 3.942 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/12.35, allocations: 350.2 kB / 3.943 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.07e-05/12.35, allocations: 27 kB / 3.943 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/12.35, allocations: 197.5 kB / 3.943 GB, free: 34.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/12.35, allocations: 71.09 kB / 3.943 GB, free: 34.91 MB / 0.5261 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 () * 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.0005298/12.35, allocations: 182.2 kB / 3.943 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004577/12.35, allocations: 137.9 kB / 3.943 GB, free: 34.74 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009196/12.36, allocations: 6.47 MB / 3.95 GB, free: 34.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.655e-05/12.36, allocations: 87.3 kB / 3.95 GB, free: 34.01 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/12.36, allocations: 5.688 kB / 3.95 GB, free: 34.01 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/12.36, allocations: 7.406 kB / 3.95 GB, free: 34.01 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005199/12.36, allocations: 3.278 MB / 3.953 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/12.36, allocations: 0 / 3.953 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/12.37, allocations: 314.2 kB / 3.953 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.707e-05/12.37, allocations: 3.969 kB / 3.953 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/12.37, allocations: 30.52 kB / 3.953 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.699e-06/12.37, allocations: 3.625 kB / 3.953 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/12.37, allocations: 3.953 kB / 3.953 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004703/12.37, allocations: 2.779 MB / 3.956 GB, free: 33.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001976/12.37, allocations: 0.9058 MB / 3.957 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004818/12.37, allocations: 18.75 kB / 3.957 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/12.38, allocations: 149.6 kB / 3.957 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000324/12.38, allocations: 114.8 kB / 3.957 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/12.38, allocations: 40.56 kB / 3.957 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003046/12.38, allocations: 1.507 MB / 3.959 GB, free: 32.51 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.493e-06/12.38, allocations: 0 / 3.959 GB, free: 32.51 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01023/12.39, allocations: 1.83 MB / 3.96 GB, free: 32.42 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: 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 () * 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.01589/12.41, allocations: 5.21 MB / 3.965 GB, free: 31.31 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005106/12.41, allocations: 2.185 MB / 3.968 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/12.41, allocations: 0 / 3.968 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002181/12.41, allocations: 1.371 MB / 3.969 GB, free: 31.26 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007209/12.42, allocations: 0.7856 MB / 3.97 GB, free: 31.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/12.44, allocations: 4.948 MB / 3.974 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/12.44, allocations: 1.858 MB / 3.976 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002012/12.44, allocations: 1.12 MB / 3.977 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.362e-06/12.44, allocations: 0 / 3.977 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.993/16.43, allocations: 61.81 MB / 4.038 GB, free: 24.21 MB / 0.5261 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