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.001584/0.001584, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.028/2.028, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001184/0.001184, allocations: 93.73 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5319/0.5319, allocations: 43.55 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000715/0.0007151, allocations: 12 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1361, allocations: 58.84 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.716/8.853, allocations: 2.773 GB / 3.251 GB, free: 34.75 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/8.853, allocations: 87.33 kB / 3.252 GB, free: 34.7 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 3.881/12.73, allocations: 0.6395 GB / 3.891 GB, free: 40.05 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.316e-06/12.73, allocations: 2.812 kB / 3.891 GB, free: 40.05 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001968/12.73, allocations: 42.05 kB / 3.891 GB, free: 40.05 MB / 0.5261 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.0134/12.75, allocations: 2.595 MB / 3.894 GB, free: 39.04 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/12.75, allocations: 12.58 kB / 3.894 GB, free: 39.04 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008823/12.75, allocations: 183 kB / 3.894 GB, free: 38.99 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0122/12.76, allocations: 0.9514 MB / 3.895 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003492/12.76, allocations: 0.9934 MB / 3.896 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/12.76, allocations: 107.7 kB / 3.896 GB, free: 38.58 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000484/12.77, allocations: 116.4 kB / 3.896 GB, free: 38.58 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/12.78, allocations: 2.298 MB / 3.898 GB, free: 38.14 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.085e-05/12.78, allocations: 16.16 kB / 3.898 GB, free: 38.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003101/12.78, allocations: 56.09 kB / 3.898 GB, free: 38.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.871e-05/12.78, allocations: 35.39 kB / 3.898 GB, free: 38.13 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01092/12.79, allocations: 2.184 MB / 3.9 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02064/12.81, allocations: 9.994 MB / 3.91 GB, free: 31.54 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009242/12.82, allocations: 1.745 MB / 3.912 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08383/12.9, allocations: 25.99 MB / 3.937 GB, free: 32.22 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.708e-05/12.9, allocations: 46.84 kB / 3.937 GB, free: 32.18 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=88): time 4.789e-06/12.9, allocations: 0.9375 kB / 3.937 GB, free: 32.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88): time 0.01693/12.92, allocations: 2.938 MB / 3.94 GB, free: 32.05 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000217/12.92, allocations: 266.2 kB / 3.94 GB, free: 31.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001955/12.92, allocations: 0.9252 MB / 3.941 GB, free: 31.58 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003351/12.92, allocations: 42.92 kB / 3.941 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005254/12.92, allocations: 0.5826 MB / 3.942 GB, free: 31.23 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004193/12.92, allocations: 308.7 kB / 3.942 GB, free: 31.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/12.92, allocations: 23.5 kB / 3.942 GB, free: 31.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001722/12.92, allocations: 347.4 kB / 3.943 GB, free: 30.73 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002462/12.92, allocations: 0.5005 MB / 3.943 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002933/12.93, allocations: 0.9079 MB / 3.944 GB, free: 30.24 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003031/12.93, allocations: 0.5846 MB / 3.945 GB, free: 30.2 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.413e-05/12.93, allocations: 3.531 kB / 3.945 GB, free: 30.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.007404/12.94, allocations: 1.458 MB / 3.946 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001829/12.94, allocations: 4.444 MB / 3.95 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-05/12.94, allocations: 16.42 kB / 3.95 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.291e-05/12.94, allocations: 23.16 kB / 3.95 GB, free: 25.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002877/12.94, allocations: 351.7 kB / 3.951 GB, free: 25.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.075e-05/12.94, allocations: 25.86 kB / 3.951 GB, free: 25.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/12.95, allocations: 249.2 kB / 3.951 GB, free: 25.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003847/12.95, allocations: 68.19 kB / 3.951 GB, free: 25.35 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/12.95, allocations: 6.469 kB / 3.951 GB, free: 25.35 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006825/12.95, allocations: 1.376 MB / 3.952 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.91e-05/12.95, allocations: 17.06 kB / 3.952 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.807e-05/12.95, allocations: 19.53 kB / 3.952 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002651/12.96, allocations: 356.6 kB / 3.953 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.268e-05/12.96, allocations: 24.39 kB / 3.953 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00215/12.96, allocations: 203.2 kB / 3.953 GB, free: 25.24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002895/12.96, allocations: 68.19 kB / 3.953 GB, free: 25.24 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 () * 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.001307/12.96, allocations: 396 kB / 3.953 GB, free: 25.03 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005245/12.96, allocations: 136.3 kB / 3.954 GB, free: 24.96 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0148/12.97, allocations: 6.791 MB / 3.96 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/12.98, allocations: 87.62 kB / 3.96 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/12.98, allocations: 4 kB / 3.96 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.864e-05/12.98, allocations: 7.547 kB / 3.96 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006268/12.98, allocations: 3.281 MB / 3.963 GB, free: 23.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-05/12.98, allocations: 0 / 3.963 GB, free: 23.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002279/12.98, allocations: 311.3 kB / 3.964 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.011e-05/12.98, allocations: 6.438 kB / 3.964 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/12.98, allocations: 28.95 kB / 3.964 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/12.98, allocations: 3.656 kB / 3.964 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/12.98, allocations: 1.594 kB / 3.964 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007644/12.99, allocations: 3.12 MB / 3.967 GB, free: 23.08 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/12.99, allocations: 0.9067 MB / 3.968 GB, free: 22.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007441/12.99, allocations: 16.75 kB / 3.968 GB, free: 22.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002668/13, allocations: 151 kB / 3.968 GB, free: 22.67 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003878/13, allocations: 111.3 kB / 3.968 GB, free: 22.67 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/13, allocations: 40.47 kB / 3.968 GB, free: 22.67 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003516/13, allocations: 1.535 MB / 3.97 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.062e-06/13, allocations: 0 / 3.97 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01108/13.01, allocations: 1.828 MB / 3.971 GB, free: 22.32 MB / 0.5417 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.02177/13.03, allocations: 5.522 MB / 3.977 GB, free: 20.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009611/13.04, allocations: 2.673 MB / 3.979 GB, free: 20.88 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/13.04, allocations: 3.938 kB / 3.979 GB, free: 20.88 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003635/13.05, allocations: 1.546 MB / 3.981 GB, free: 20.86 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007816/13.06, allocations: 0.7866 MB / 3.982 GB, free: 20.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03847/13.09, allocations: 20.52 MB / 4.002 GB, free: 8.125 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/13.1, allocations: 1.86 MB / 4.003 GB, free: 23.34 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/13.1, allocations: 1.116 MB / 4.005 GB, free: 23.34 MB / 0.5574 GB Notification: Performance of SimCode: time 1.413e-06/13.1, allocations: 2.156 kB / 4.005 GB, free: 23.34 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.081/17.18, allocations: 59 MB / 4.062 GB, free: 16.78 MB / 0.5574 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