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.001499/0.001499, allocations: 180.5 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.582/1.582, allocations: 221.4 MB / 236 MB, free: 2.914 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.0008603/0.0008601, allocations: 94.06 kB / 287 MB, free: 204 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.2452/0.2452, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.704e-05/4.719e-05, allocations: 12.16 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1745, allocations: 61.91 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.855/8.029, allocations: 2.766 GB / 3.268 GB, free: 99.64 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/8.03, allocations: 85.44 kB / 3.268 GB, free: 99.61 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.443/9.472, allocations: 405.7 MB / 3.664 GB, free: 74.22 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.114e-06/9.472, allocations: 0 / 3.664 GB, free: 74.22 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.912e-05/9.472, allocations: 7.938 kB / 3.664 GB, free: 74.22 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.007001/9.479, allocations: 1.545 MB / 3.665 GB, free: 73.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/9.479, allocations: 7.938 kB / 3.665 GB, free: 73.41 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/9.48, allocations: 84.38 kB / 3.666 GB, free: 73.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002325/9.482, allocations: 287.8 kB / 3.666 GB, free: 73.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009619/9.483, allocations: 466 kB / 3.666 GB, free: 72.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/9.483, allocations: 30.69 kB / 3.666 GB, free: 72.97 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.032e-05/9.483, allocations: 42.14 kB / 3.666 GB, free: 72.96 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/9.485, allocations: 0.6955 MB / 3.667 GB, free: 72.62 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/9.485, allocations: 0 / 3.667 GB, free: 72.62 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.259e-05/9.485, allocations: 15.94 kB / 3.667 GB, free: 72.61 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/9.485, allocations: 11.62 kB / 3.667 GB, free: 72.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/9.486, allocations: 0.5689 MB / 3.668 GB, free: 72.45 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.003149/9.489, allocations: 2.984 MB / 3.67 GB, free: 70.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/9.49, allocations: 478.5 kB / 3.671 GB, free: 69.97 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/9.49, allocations: 148.5 kB / 3.671 GB, free: 69.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09398/9.584, allocations: 55.76 MB / 3.726 GB, free: 34.18 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/9.584, allocations: 34.52 kB / 3.726 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=30): time 2.204e-06/9.584, allocations: 3.828 kB / 3.726 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=30): time 0.002379/9.587, allocations: 0.7265 MB / 3.726 GB, free: 33.92 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/9.587, allocations: 106.1 kB / 3.726 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004801/9.587, allocations: 358.9 kB / 3.727 GB, free: 33.61 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/9.587, allocations: 29.7 kB / 3.727 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/9.588, allocations: 249.7 kB / 3.727 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.323e-05/9.588, allocations: 104.6 kB / 3.727 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.724e-05/9.588, allocations: 4 kB / 3.727 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.558e-05/9.588, allocations: 356.8 kB / 3.727 GB, free: 32.95 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/9.588, allocations: 106.1 kB / 3.728 GB, free: 32.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/9.588, allocations: 234.4 kB / 3.728 GB, free: 32.71 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/9.588, allocations: 140.9 kB / 3.728 GB, free: 32.66 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/9.588, allocations: 0 / 3.728 GB, free: 32.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006928/9.589, allocations: 450.9 kB / 3.728 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002426/9.589, allocations: 1.312 MB / 3.73 GB, free: 31.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/9.589, allocations: 3.062 kB / 3.73 GB, free: 31.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002592/9.592, allocations: 334.9 kB / 3.73 GB, free: 31.03 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000362/9.592, allocations: 103.9 kB / 3.73 GB, free: 31.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000507/9.593, allocations: 0.5956 MB / 3.731 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005877/9.594, allocations: 72.3 kB / 3.731 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/9.594, allocations: 18.67 kB / 3.731 GB, free: 30.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/9.594, allocations: 3.969 kB / 3.731 GB, free: 30.42 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006337/9.594, allocations: 330.9 kB / 3.731 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/9.594, allocations: 6.312 kB / 3.731 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/9.594, allocations: 3.219 kB / 3.731 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/9.595, allocations: 109.3 kB / 3.731 GB, free: 30.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/9.595, allocations: 19.39 kB / 3.731 GB, free: 30.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005005/9.595, allocations: 70.02 kB / 3.731 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/9.595, allocations: 21.36 kB / 3.731 GB, free: 30.24 MB / 0.5261 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 () * 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.0001775/9.595, allocations: 126.2 kB / 3.731 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/9.596, allocations: 44.59 kB / 3.731 GB, free: 30.09 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/9.598, allocations: 2 MB / 3.733 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/9.598, allocations: 26.98 kB / 3.733 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/9.598, allocations: 3.953 kB / 3.733 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/9.598, allocations: 2.875 kB / 3.733 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/9.599, allocations: 1.015 MB / 3.734 GB, free: 28.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/9.599, allocations: 3.391 kB / 3.734 GB, free: 28.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002871/9.6, allocations: 81.06 kB / 3.734 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/9.601, allocations: 0.7537 MB / 3.735 GB, free: 28.37 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/9.601, allocations: 11.84 kB / 3.735 GB, free: 28.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006859/9.602, allocations: 1.007 MB / 3.736 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/9.602, allocations: 0 / 3.736 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/9.603, allocations: 1.265 MB / 3.737 GB, free: 26.94 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003299/9.603, allocations: 259.8 kB / 3.738 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.072e-05/9.604, allocations: 7.906 kB / 3.738 GB, free: 26.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/9.604, allocations: 49.72 kB / 3.738 GB, free: 26.72 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/9.604, allocations: 27.03 kB / 3.738 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/9.604, allocations: 14.86 kB / 3.738 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003967/9.604, allocations: 383 kB / 3.738 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3e-07/9.604, allocations: 0 / 3.738 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0054/9.61, allocations: 1.199 MB / 3.739 GB, free: 26.29 MB / 0.5261 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 () * 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.01118/9.621, allocations: 3.126 MB / 3.742 GB, free: 23.89 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002014/9.623, allocations: 0.7148 MB / 3.743 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/9.623, allocations: 0 / 3.743 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007122/9.624, allocations: 470.1 kB / 3.743 GB, free: 22.78 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/9.626, allocations: 258.1 kB / 3.744 GB, free: 22.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005458/9.631, allocations: 1.651 MB / 3.745 GB, free: 21.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/9.631, allocations: 1.005 MB / 3.746 GB, free: 20.15 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009325/9.632, allocations: 0.5745 MB / 3.747 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/9.633, allocations: 285.1 kB / 3.747 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of SimCode: time 1.333e-06/9.633, allocations: 0 / 3.747 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4008/10.03, allocations: 49.35 MB / 3.795 GB, free: 89.09 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/10.03, allocations: 234.5 kB / 3.796 GB, free: 88.82 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.539/13.57, allocations: 1.562 kB / 3.796 GB, free: 88.82 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