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.002164/0.002164, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.549/1.549, allocations: 221.3 MB / 236 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009459, allocations: 95.5 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2334/0.2334, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.677e-05/3.681e-05, allocations: 4.219 kB / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1606, allocations: 61.91 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.25/7.411, allocations: 2.778 GB / 3.28 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/7.411, allocations: 85.77 kB / 3.28 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.541/9.953, allocations: 0.6443 GB / 3.924 GB, free: 45.33 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.725e-06/9.953, allocations: 0 / 3.924 GB, free: 45.33 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.366e-05/9.953, allocations: 44.5 kB / 3.924 GB, free: 45.32 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.008706/9.962, allocations: 2.445 MB / 3.926 GB, free: 44.21 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/9.962, allocations: 8.906 kB / 3.926 GB, free: 44.21 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003895/9.962, allocations: 181.3 kB / 3.927 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007828/9.97, allocations: 0.958 MB / 3.928 GB, free: 44.09 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002672/9.973, allocations: 0.9886 MB / 3.928 GB, free: 43.76 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/9.973, allocations: 104.3 kB / 3.929 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/9.973, allocations: 115.1 kB / 3.929 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004978/9.978, allocations: 2.267 MB / 3.931 GB, free: 43.31 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/9.978, allocations: 4.5 kB / 3.931 GB, free: 43.31 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/9.978, allocations: 66.09 kB / 3.931 GB, free: 43.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.303e-05/9.978, allocations: 34.25 kB / 3.931 GB, free: 43.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00429/9.982, allocations: 1.985 MB / 3.933 GB, free: 43.29 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/9.994, allocations: 10.01 MB / 3.943 GB, free: 36.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003863/9.998, allocations: 1.571 MB / 3.944 GB, free: 36.67 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006079/9.999, allocations: 444.2 kB / 3.945 GB, free: 36.66 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0459/10.04, allocations: 26.09 MB / 3.97 GB, free: 20.78 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/10.04, allocations: 44.88 kB / 3.97 GB, free: 20.74 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=88): time 4.689e-06/10.04, allocations: 0 / 3.97 GB, free: 20.74 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88): time 0.006755/10.05, allocations: 2.355 MB / 3.972 GB, free: 20.61 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/10.05, allocations: 278.6 kB / 3.973 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/10.05, allocations: 0.9079 MB / 3.974 GB, free: 20.12 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000104/10.05, allocations: 38.55 kB / 3.974 GB, free: 20.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003989/10.05, allocations: 0.6107 MB / 3.974 GB, free: 19.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002463/10.05, allocations: 297.2 kB / 3.975 GB, free: 19.65 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.415e-05/10.05, allocations: 25.06 kB / 3.975 GB, free: 19.65 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.835e-05/10.05, allocations: 350.1 kB / 3.975 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005128/10.05, allocations: 341.5 kB / 3.975 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007625/10.06, allocations: 0.7423 MB / 3.976 GB, free: 18.86 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/10.06, allocations: 427.3 kB / 3.976 GB, free: 18.83 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/10.06, allocations: 0 / 3.976 GB, free: 18.83 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001963/10.06, allocations: 1.214 MB / 3.978 GB, free: 18.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00139/10.06, allocations: 4.471 MB / 3.982 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/10.06, allocations: 13.31 kB / 3.982 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.637e-05/10.06, allocations: 21 kB / 3.982 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/10.06, allocations: 360.6 kB / 3.982 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.924e-05/10.06, allocations: 24.61 kB / 3.982 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/10.06, allocations: 254 kB / 3.983 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/10.06, allocations: 69 kB / 3.983 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/10.06, allocations: 3.812 kB / 3.983 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001705/10.06, allocations: 1.051 MB / 3.984 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/10.06, allocations: 10.12 kB / 3.984 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/10.06, allocations: 17.34 kB / 3.984 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/10.07, allocations: 353.6 kB / 3.984 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/10.07, allocations: 25.11 kB / 3.984 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/10.07, allocations: 227.1 kB / 3.984 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/10.07, allocations: 69.67 kB / 3.984 GB, free: 13.71 MB / 0.5417 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.0003334/10.07, allocations: 186.5 kB / 3.985 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/10.07, allocations: 150 kB / 3.985 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00607/10.07, allocations: 6.472 MB / 3.991 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.547e-05/10.07, allocations: 82.17 kB / 3.991 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/10.07, allocations: 0 / 3.991 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/10.07, allocations: 5.484 kB / 3.991 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003831/10.08, allocations: 3.279 MB / 3.994 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.557e-06/10.08, allocations: 0 / 3.994 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/10.08, allocations: 312.8 kB / 3.995 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/10.08, allocations: 6.594 kB / 3.995 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.697e-05/10.08, allocations: 29.66 kB / 3.995 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.776e-06/10.08, allocations: 2.594 kB / 3.995 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/10.08, allocations: 4 kB / 3.995 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003061/10.08, allocations: 2.787 MB / 3.997 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/10.08, allocations: 0.9066 MB / 3.998 GB, free: 26.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/10.08, allocations: 25.14 kB / 3.998 GB, free: 26.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/10.08, allocations: 144.1 kB / 3.998 GB, free: 25.99 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/10.09, allocations: 104.7 kB / 3.998 GB, free: 25.98 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.791e-05/10.09, allocations: 50.09 kB / 3.999 GB, free: 25.96 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001989/10.09, allocations: 1.503 MB / 4 GB, free: 25.36 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.8e-07/10.09, allocations: 0 / 4 GB, free: 25.36 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008441/10.1, allocations: 1.84 MB / 4.002 GB, free: 25.03 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 () * 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.01368/10.11, allocations: 5.209 MB / 4.007 GB, free: 22.77 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003931/10.11, allocations: 2.225 MB / 4.009 GB, free: 21.91 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/10.11, allocations: 6.844 kB / 4.009 GB, free: 21.91 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001416/10.11, allocations: 1.371 MB / 4.01 GB, free: 21.25 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005084/10.12, allocations: 0.7841 MB / 4.011 GB, free: 21.05 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01693/10.14, allocations: 4.908 MB / 4.016 GB, free: 19.03 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002237/10.14, allocations: 1.866 MB / 4.018 GB, free: 18.24 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00415/10.14, allocations: 2.17 MB / 4.02 GB, free: 18.04 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001495/10.14, allocations: 1.093 MB / 4.021 GB, free: 17.04 MB / 0.5573 GB Notification: Performance of SimCode: time 2.234e-06/10.14, allocations: 0 / 4.021 GB, free: 17.04 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5832/10.73, allocations: 95.3 MB / 4.114 GB, free: 44.88 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/10.73, allocations: 207.9 kB / 4.114 GB, free: 44.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.489/17.22, allocations: 4 kB / 4.114 GB, free: 44.66 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