Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002311/0.00231, allocations: 185.4 kB / 16.4 MB, free: 5.746 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.281/2.281, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001164/0.001163, allocations: 90.86 kB / 270.9 MB, free: 8.363 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.5253/0.5253, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004843/0.0004842, allocations: 16 kB / 431.5 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1404, allocations: 58.85 MB / 490.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.653/8.794, allocations: 2.761 GB / 3.239 GB, free: 49.96 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/8.794, allocations: 93.31 kB / 3.24 GB, free: 49.91 MB / 0.4948 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 2.105/10.9, allocations: 402.5 MB / 3.633 GB, free: 36.7 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.705e-06/10.9, allocations: 0 / 3.633 GB, free: 36.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.671e-05/10.9, allocations: 14.64 kB / 3.633 GB, free: 36.7 MB / 0.4948 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.007122/10.91, allocations: 1.593 MB / 3.634 GB, free: 35.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/10.91, allocations: 8.031 kB / 3.634 GB, free: 35.44 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002185/10.91, allocations: 82.47 kB / 3.634 GB, free: 35.35 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003362/10.91, allocations: 297.3 kB / 3.635 GB, free: 35.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/10.91, allocations: 452.7 kB / 3.635 GB, free: 34.59 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.714e-05/10.91, allocations: 33 kB / 3.635 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.455e-05/10.91, allocations: 40.45 kB / 3.635 GB, free: 34.52 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002839/10.91, allocations: 0.7004 MB / 3.636 GB, free: 33.77 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/10.91, allocations: 0 / 3.636 GB, free: 33.77 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.604e-05/10.91, allocations: 19.95 kB / 3.636 GB, free: 33.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/10.91, allocations: 12 kB / 3.636 GB, free: 33.74 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00294/10.92, allocations: 0.612 MB / 3.636 GB, free: 33.14 MB / 0.4948 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.005672/10.92, allocations: 2.988 MB / 3.639 GB, free: 29.97 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/10.93, allocations: 485.5 kB / 3.64 GB, free: 29.49 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5729/11.5, allocations: 55.54 MB / 3.694 GB, free: 57.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.096e-05/11.5, allocations: 36.3 kB / 3.694 GB, free: 57.49 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 3.046e-06/11.5, allocations: 2.281 kB / 3.694 GB, free: 57.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.005268/11.5, allocations: 0.9937 MB / 3.695 GB, free: 57.35 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/11.5, allocations: 111.4 kB / 3.695 GB, free: 57.23 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006456/11.5, allocations: 359.6 kB / 3.695 GB, free: 57.13 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/11.5, allocations: 34.64 kB / 3.695 GB, free: 57.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000177/11.5, allocations: 288.8 kB / 3.696 GB, free: 56.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/11.5, allocations: 99.52 kB / 3.696 GB, free: 56.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.476e-05/11.51, allocations: 7.438 kB / 3.696 GB, free: 56.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.4e-05/11.51, allocations: 324.2 kB / 3.696 GB, free: 56.56 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006215/11.51, allocations: 148.4 kB / 3.696 GB, free: 56.56 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007307/11.51, allocations: 276.7 kB / 3.697 GB, free: 56.42 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007141/11.51, allocations: 171.7 kB / 3.697 GB, free: 56.42 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/11.51, allocations: 1 kB / 3.697 GB, free: 56.42 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001822/11.51, allocations: 482.2 kB / 3.697 GB, free: 56.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003272/11.51, allocations: 1.309 MB / 3.698 GB, free: 55.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/11.51, allocations: 7.797 kB / 3.698 GB, free: 55.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004905/11.51, allocations: 335.8 kB / 3.699 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000738/11.52, allocations: 96.27 kB / 3.699 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006773/11.52, allocations: 0.6001 MB / 3.699 GB, free: 54.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007547/11.52, allocations: 65.8 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.873e-05/11.52, allocations: 21.06 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/11.52, allocations: 3.875 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001561/11.52, allocations: 421.5 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/11.52, allocations: 7.062 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/11.52, allocations: 5.969 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007583/11.52, allocations: 101.7 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/11.52, allocations: 19.11 kB / 3.7 GB, free: 54.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/11.52, allocations: 56.62 kB / 3.7 GB, free: 54.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/11.52, allocations: 21.84 kB / 3.7 GB, free: 54.47 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.000417/11.52, allocations: 242 kB / 3.7 GB, free: 54.28 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/11.52, allocations: 50.16 kB / 3.7 GB, free: 54.26 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003669/11.52, allocations: 2.035 MB / 3.702 GB, free: 54.07 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.865e-05/11.52, allocations: 30.41 kB / 3.702 GB, free: 54.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/11.52, allocations: 0 / 3.702 GB, free: 54.07 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/11.52, allocations: 3.328 kB / 3.702 GB, free: 54.07 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/11.53, allocations: 1.009 MB / 3.703 GB, free: 53.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/11.53, allocations: 0.6875 kB / 3.703 GB, free: 53.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/11.53, allocations: 85.06 kB / 3.704 GB, free: 53.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002303/11.53, allocations: 0.6367 MB / 3.704 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.994e-05/11.53, allocations: 7.203 kB / 3.704 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000985/11.53, allocations: 1.018 MB / 3.705 GB, free: 53.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/11.53, allocations: 0 / 3.705 GB, free: 53.27 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/11.53, allocations: 1.336 MB / 3.706 GB, free: 53.01 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004556/11.53, allocations: 258.3 kB / 3.707 GB, free: 52.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/11.53, allocations: 10.7 kB / 3.707 GB, free: 52.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/11.53, allocations: 42.28 kB / 3.707 GB, free: 52.86 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/11.53, allocations: 33.22 kB / 3.707 GB, free: 52.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.793e-05/11.53, allocations: 12.97 kB / 3.707 GB, free: 52.86 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006435/11.53, allocations: 391.6 kB / 3.707 GB, free: 52.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.8e-07/11.53, allocations: 0 / 3.707 GB, free: 52.77 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006054/11.54, allocations: 1.201 MB / 3.708 GB, free: 52.77 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.01295/11.55, allocations: 3.198 MB / 3.711 GB, free: 51.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002817/11.56, allocations: 0.8133 MB / 3.712 GB, free: 51.97 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/11.56, allocations: 9.406 kB / 3.712 GB, free: 51.97 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001065/11.56, allocations: 494.7 kB / 3.713 GB, free: 51.96 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/11.56, allocations: 268.1 kB / 3.713 GB, free: 51.96 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/11.57, allocations: 6.279 MB / 3.719 GB, free: 48.41 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/11.57, allocations: 0.9948 MB / 3.72 GB, free: 47.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004892/11.57, allocations: 293.3 kB / 3.72 GB, free: 47.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.272e-06/11.57, allocations: 0 / 3.72 GB, free: 47.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.801/15.37, allocations: 35.02 MB / 3.755 GB, free: 45.18 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat