Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",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.001978/0.001978, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.601/1.601, allocations: 223.2 MB / 241 MB, free: 11.9 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.0009379/0.000938, allocations: 104.1 kB / 292.1 MB, free: 10.92 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.4127/0.4127, allocations: 44.22 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003433, allocations: 8 kB / 460 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.463/0.4634, allocations: 61.89 MB / 0.5096 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.471/7.935, allocations: 2.766 GB / 3.276 GB, free: 92.73 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004101/7.935, allocations: 100.9 kB / 3.276 GB, free: 92.64 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 1.744/9.679, allocations: 406.8 MB / 3.673 GB, free: 59.34 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.416e-06/9.679, allocations: 2.781 kB / 3.673 GB, free: 59.34 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.36e-05/9.68, allocations: 11.34 kB / 3.673 GB, free: 59.34 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.008602/9.688, allocations: 1.599 MB / 3.675 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 9.067e-05/9.688, allocations: 7.562 kB / 3.675 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/9.688, allocations: 85.03 kB / 3.675 GB, free: 58.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002516/9.691, allocations: 291.7 kB / 3.675 GB, free: 58.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/9.692, allocations: 458.4 kB / 3.675 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.965e-05/9.692, allocations: 27.69 kB / 3.675 GB, free: 57.99 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.282e-05/9.692, allocations: 38.38 kB / 3.675 GB, free: 57.98 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/9.694, allocations: 0.7023 MB / 3.676 GB, free: 57.66 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.738e-05/9.694, allocations: 6.609 kB / 3.676 GB, free: 57.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-05/9.694, allocations: 22.25 kB / 3.676 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/9.694, allocations: 11.16 kB / 3.676 GB, free: 57.64 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/9.696, allocations: 0.6111 MB / 3.677 GB, free: 57.49 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004089/9.7, allocations: 2.974 MB / 3.68 GB, free: 55.17 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/9.702, allocations: 489.2 kB / 3.68 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1043/9.806, allocations: 55.56 MB / 3.734 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009277/9.807, allocations: 45.64 kB / 3.734 GB, free: 35 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 5.51e-06/9.807, allocations: 0 / 3.734 GB, free: 35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.00375/9.811, allocations: 0.9896 MB / 3.735 GB, free: 34.65 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.691e-05/9.811, allocations: 113.5 kB / 3.735 GB, free: 34.52 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006677/9.812, allocations: 361 kB / 3.736 GB, free: 34.34 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.256e-05/9.812, allocations: 37.48 kB / 3.736 GB, free: 34.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/9.812, allocations: 247.8 kB / 3.736 GB, free: 34.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/9.812, allocations: 100.3 kB / 3.736 GB, free: 34.02 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.959e-05/9.812, allocations: 4 kB / 3.736 GB, free: 34.02 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000186/9.812, allocations: 356.9 kB / 3.737 GB, free: 33.69 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/9.813, allocations: 146.8 kB / 3.737 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004065/9.813, allocations: 264.5 kB / 3.737 GB, free: 33.46 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/9.813, allocations: 172 kB / 3.737 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/9.813, allocations: 0 / 3.737 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001236/9.815, allocations: 0.5105 MB / 3.738 GB, free: 33.18 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007148/9.815, allocations: 1.306 MB / 3.739 GB, free: 31.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/9.815, allocations: 3.781 kB / 3.739 GB, free: 31.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002739/9.818, allocations: 337.4 kB / 3.739 GB, free: 31.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/9.819, allocations: 92.12 kB / 3.739 GB, free: 31.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006249/9.819, allocations: 0.6092 MB / 3.74 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006235/9.82, allocations: 72.31 kB / 3.74 GB, free: 31.14 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.281e-05/9.82, allocations: 22.39 kB / 3.74 GB, free: 31.14 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/9.82, allocations: 3.5 kB / 3.74 GB, free: 31.14 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009582/9.821, allocations: 410 kB / 3.74 GB, free: 31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/9.821, allocations: 7.969 kB / 3.74 GB, free: 31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/9.821, allocations: 3.938 kB / 3.74 GB, free: 31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003894/9.821, allocations: 107.5 kB / 3.74 GB, free: 30.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/9.821, allocations: 11.17 kB / 3.74 GB, free: 30.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005873/9.822, allocations: 63.62 kB / 3.741 GB, free: 30.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/9.822, allocations: 22.64 kB / 3.741 GB, free: 30.95 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005261/9.823, allocations: 253.8 kB / 3.741 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/9.823, allocations: 41.19 kB / 3.741 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/9.826, allocations: 2.037 MB / 3.743 GB, free: 29.33 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-05/9.826, allocations: 25.78 kB / 3.743 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/9.826, allocations: 3.953 kB / 3.743 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/9.826, allocations: 0 / 3.743 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/9.828, allocations: 1.01 MB / 3.744 GB, free: 28.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/9.828, allocations: 4 kB / 3.744 GB, free: 28.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/9.828, allocations: 77.53 kB / 3.744 GB, free: 28.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001688/9.83, allocations: 0.6351 MB / 3.745 GB, free: 27.83 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.865e-05/9.83, allocations: 8 kB / 3.745 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008857/9.831, allocations: 1.025 MB / 3.746 GB, free: 26.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/9.831, allocations: 0 / 3.746 GB, free: 26.83 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/9.833, allocations: 1.333 MB / 3.747 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005048/9.833, allocations: 265.9 kB / 3.747 GB, free: 25.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/9.833, allocations: 8 kB / 3.747 GB, free: 25.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004113/9.834, allocations: 38.7 kB / 3.747 GB, free: 25.31 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/9.834, allocations: 31 kB / 3.747 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/9.834, allocations: 12 kB / 3.747 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000517/9.834, allocations: 392.8 kB / 3.748 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/9.834, allocations: 4 kB / 3.748 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006522/9.841, allocations: 1.197 MB / 3.749 GB, free: 23.77 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: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0124/9.853, allocations: 3.216 MB / 3.752 GB, free: 20.99 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002168/9.856, allocations: 0.817 MB / 3.753 GB, free: 20.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/9.856, allocations: 0 / 3.753 GB, free: 20.27 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007718/9.856, allocations: 0.4946 MB / 3.753 GB, free: 19.83 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/9.858, allocations: 269.8 kB / 3.753 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/9.87, allocations: 6.246 MB / 3.759 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006911/9.871, allocations: 0.9958 MB / 3.76 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001067/9.872, allocations: 0.5618 MB / 3.761 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003746/9.873, allocations: 285.6 kB / 3.761 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of SimCode: time 1.563e-06/9.873, allocations: 0 / 3.761 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5121/10.38, allocations: 46.23 MB / 3.806 GB, free: 67.07 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00031/10.39, allocations: 256 kB / 3.807 GB, free: 66.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/14.07, allocations: 3.719 kB / 3.807 GB, free: 66.71 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat