Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",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.001589/0.001589, allocations: 183.7 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.732/1.732, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001119/0.001119, allocations: 98.84 kB / 270.2 MB, free: 13.36 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.2398/0.2398, allocations: 43.57 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003172, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1429, allocations: 58.86 MB / 490.4 MB, free: 8.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.428/7.571, allocations: 2.761 GB / 3.239 GB, free: 153 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/7.571, allocations: 87.45 kB / 3.24 GB, free: 152.9 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.651/9.222, allocations: 402.5 MB / 3.633 GB, free: 67.13 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.264e-06/9.222, allocations: 0 / 3.633 GB, free: 67.13 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.348e-05/9.222, allocations: 15.69 kB / 3.633 GB, free: 67.13 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.007317/9.23, allocations: 1.594 MB / 3.634 GB, free: 66.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.344e-05/9.23, allocations: 9.562 kB / 3.634 GB, free: 66.46 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/9.23, allocations: 84.53 kB / 3.634 GB, free: 66.42 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/9.232, allocations: 293.8 kB / 3.635 GB, free: 66.39 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008497/9.233, allocations: 451.4 kB / 3.635 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/9.233, allocations: 33.12 kB / 3.635 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/9.233, allocations: 40.08 kB / 3.635 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/9.234, allocations: 0.6987 MB / 3.636 GB, free: 66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/9.235, allocations: 1.312 kB / 3.636 GB, free: 66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.247e-05/9.235, allocations: 25.23 kB / 3.636 GB, free: 66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/9.235, allocations: 9.812 kB / 3.636 GB, free: 66 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/9.236, allocations: 0.6112 MB / 3.636 GB, free: 66 MB / 0.5105 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.003272/9.239, allocations: 2.982 MB / 3.639 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/9.241, allocations: 494.1 kB / 3.64 GB, free: 64.05 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0955/9.336, allocations: 55.54 MB / 3.694 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/9.336, allocations: 37.28 kB / 3.694 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 2.605e-06/9.336, allocations: 4 kB / 3.694 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.003719/9.34, allocations: 0.9917 MB / 3.695 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/9.34, allocations: 110.7 kB / 3.695 GB, free: 29.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006156/9.341, allocations: 362.3 kB / 3.695 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/9.341, allocations: 32.33 kB / 3.696 GB, free: 29.07 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/9.341, allocations: 244.5 kB / 3.696 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/9.341, allocations: 104.7 kB / 3.696 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.13e-05/9.341, allocations: 7.688 kB / 3.696 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001274/9.341, allocations: 354.8 kB / 3.696 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/9.342, allocations: 148.8 kB / 3.696 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004239/9.342, allocations: 271.8 kB / 3.697 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004288/9.343, allocations: 176 kB / 3.697 GB, free: 28.43 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/9.343, allocations: 0 / 3.697 GB, free: 28.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001234/9.344, allocations: 0.5025 MB / 3.697 GB, free: 28.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004776/9.344, allocations: 1.317 MB / 3.699 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/9.344, allocations: 3.5 kB / 3.699 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/9.347, allocations: 334.2 kB / 3.699 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/9.347, allocations: 93.84 kB / 3.699 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005393/9.348, allocations: 0.6027 MB / 3.7 GB, free: 26.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006152/9.349, allocations: 71.39 kB / 3.7 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/9.349, allocations: 26.72 kB / 3.7 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/9.349, allocations: 3.75 kB / 3.7 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009149/9.35, allocations: 406.4 kB / 3.7 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/9.35, allocations: 7.922 kB / 3.7 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/9.35, allocations: 7.812 kB / 3.7 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003833/9.35, allocations: 107.3 kB / 3.7 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/9.35, allocations: 7.625 kB / 3.7 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000511/9.351, allocations: 66.66 kB / 3.7 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/9.351, allocations: 17.72 kB / 3.7 GB, free: 26.39 MB / 0.5105 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.0004091/9.351, allocations: 260.5 kB / 3.7 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/9.351, allocations: 38.97 kB / 3.701 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002906/9.354, allocations: 2.033 MB / 3.702 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.563e-05/9.354, allocations: 29.95 kB / 3.703 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/9.354, allocations: 5.125 kB / 3.703 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/9.354, allocations: 0 / 3.703 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/9.356, allocations: 1.012 MB / 3.704 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/9.356, allocations: 3.891 kB / 3.704 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003077/9.356, allocations: 79.12 kB / 3.704 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001631/9.358, allocations: 0.6374 MB / 3.704 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/9.358, allocations: 11.59 kB / 3.704 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008522/9.359, allocations: 1.016 MB / 3.705 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/9.359, allocations: 0 / 3.705 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/9.36, allocations: 1.332 MB / 3.707 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000559/9.361, allocations: 264.8 kB / 3.707 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/9.361, allocations: 5.562 kB / 3.707 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/9.362, allocations: 36.44 kB / 3.707 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/9.362, allocations: 38.38 kB / 3.707 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.412e-05/9.362, allocations: 14.16 kB / 3.707 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000604/9.362, allocations: 390.9 kB / 3.707 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.81e-07/9.362, allocations: 1.688 kB / 3.707 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008413/9.371, allocations: 1.211 MB / 3.708 GB, free: 24.39 MB / 0.5105 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.01391/9.385, allocations: 3.191 MB / 3.712 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00246/9.387, allocations: 0.8175 MB / 3.712 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/9.387, allocations: 0 / 3.712 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008367/9.388, allocations: 496.2 kB / 3.713 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/9.39, allocations: 274.2 kB / 3.713 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/9.402, allocations: 6.242 MB / 3.719 GB, free: 19.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/9.404, allocations: 0.9982 MB / 3.72 GB, free: 34.89 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00115/9.405, allocations: 0.5531 MB / 3.721 GB, free: 34.87 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004804/9.406, allocations: 287.6 kB / 3.721 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of SimCode: time 1.443e-06/9.406, allocations: 0 / 3.721 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1069/9.513, allocations: 46.22 MB / 3.766 GB, free: 22.43 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/9.513, allocations: 256.7 kB / 3.766 GB, free: 22.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.615/13.13, allocations: 0 / 3.766 GB, free: 22.1 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat