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.001062/0.001062, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 221.5 MB / 230.7 MB, free: 7.508 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.0009075/0.0009077, allocations: 94.95 kB / 281.6 MB, free: 5.258 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.2058/0.2058, allocations: 44.15 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.676e-05/1.678e-05, allocations: 224 / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1242, allocations: 61.92 MB / 0.4948 GB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.07/7.194, allocations: 2.765 GB / 3.26 GB, free: 3.113 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/7.194, allocations: 83.95 kB / 3.26 GB, free: 3.031 MB / 0.5105 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.49/8.684, allocations: 401.6 MB / 3.652 GB, free: 2.547 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.174e-06/8.684, allocations: 0 / 3.652 GB, free: 2.547 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.037e-05/8.684, allocations: 12 kB / 3.652 GB, free: 2.535 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.005477/8.69, allocations: 1.543 MB / 3.654 GB, free: 0.9492 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/8.69, allocations: 15.98 kB / 3.654 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002161/8.692, allocations: 287.5 kB / 3.654 GB, free: 0.6523 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007535/8.693, allocations: 460.4 kB / 3.655 GB, free: 176 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/8.693, allocations: 12 kB / 3.655 GB, free: 164 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.536e-05/8.693, allocations: 24 kB / 3.655 GB, free: 140 kB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006514/8.694, allocations: 377 kB / 3.655 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007208/8.694, allocations: 469.4 kB / 3.655 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/8.694, allocations: 0 / 3.655 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.263e-05/8.694, allocations: 0 / 3.655 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/8.694, allocations: 12 kB / 3.655 GB, free: 15.25 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.4168/9.111, allocations: 51.24 MB / 3.705 GB, free: 48.42 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/9.112, allocations: 261.6 kB / 3.706 GB, free: 48.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/9.112, allocations: 122.8 kB / 3.706 GB, free: 48.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09523/9.207, allocations: 55.75 MB / 3.76 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/9.207, allocations: 33.55 kB / 3.76 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=24): time 2.494e-06/9.207, allocations: 0.75 kB / 3.76 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=24): time 0.002398/9.21, allocations: 0.6244 MB / 3.761 GB, free: 29.35 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.182e-05/9.21, allocations: 107.8 kB / 3.761 GB, free: 29.23 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/9.21, allocations: 302.1 kB / 3.761 GB, free: 29.12 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.386e-05/9.21, allocations: 29.45 kB / 3.761 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/9.21, allocations: 268.3 kB / 3.762 GB, free: 28.95 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 7.73e-05/9.211, allocations: 87.78 kB / 3.762 GB, free: 28.91 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.125e-05/9.211, allocations: 0 / 3.762 GB, free: 28.91 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001334/9.211, allocations: 350.2 kB / 3.762 GB, free: 28.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/9.211, allocations: 98.59 kB / 3.762 GB, free: 28.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/9.211, allocations: 222.2 kB / 3.762 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/9.212, allocations: 259.9 kB / 3.763 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/9.212, allocations: 3.938 kB / 3.763 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001495/9.214, allocations: 0.5138 MB / 3.763 GB, free: 28.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004712/9.214, allocations: 1.308 MB / 3.764 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/9.214, allocations: 3.656 kB / 3.764 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000231/9.215, allocations: 57.12 kB / 3.764 GB, free: 27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/9.215, allocations: 89.69 kB / 3.764 GB, free: 27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000893/9.216, allocations: 0.6705 MB / 3.765 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000532/9.216, allocations: 72.22 kB / 3.765 GB, free: 26.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.966e-05/9.216, allocations: 17.91 kB / 3.765 GB, free: 26.47 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/9.216, allocations: 10.66 kB / 3.765 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009148/9.217, allocations: 360.8 kB / 3.766 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/9.217, allocations: 3.312 kB / 3.766 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.534e-06/9.217, allocations: 7.25 kB / 3.766 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/9.218, allocations: 114.2 kB / 3.766 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/9.218, allocations: 3.938 kB / 3.766 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/9.218, allocations: 57.31 kB / 3.766 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/9.218, allocations: 24.48 kB / 3.766 GB, free: 26.45 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 (massFlowRate1.medium.phase,boundary_fixed.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.0001602/9.218, allocations: 114.4 kB / 3.766 GB, free: 26.34 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001267/9.22, allocations: 404.3 kB / 3.766 GB, free: 26.28 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.61e-05/9.22, allocations: 45.78 kB / 3.766 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/9.222, allocations: 1.58 MB / 3.768 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-05/9.222, allocations: 26.39 kB / 3.768 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/9.222, allocations: 3.953 kB / 3.768 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/9.222, allocations: 3.844 kB / 3.768 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002487/9.224, allocations: 2.183 MB / 3.77 GB, free: 25.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/9.224, allocations: 0 / 3.77 GB, free: 25.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/9.224, allocations: 52.92 kB / 3.77 GB, free: 25.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005886/9.225, allocations: 0.5943 MB / 3.771 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/9.225, allocations: 7.766 kB / 3.771 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009983/9.226, allocations: 1.105 MB / 3.772 GB, free: 25.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/9.226, allocations: 0 / 3.772 GB, free: 25.14 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/9.228, allocations: 1.219 MB / 3.773 GB, free: 24.86 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/9.228, allocations: 193.8 kB / 3.773 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.671e-05/9.228, allocations: 0 / 3.773 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003557/9.229, allocations: 33.94 kB / 3.773 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.494e-05/9.229, allocations: 28.19 kB / 3.773 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/9.229, allocations: 13.09 kB / 3.773 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002836/9.229, allocations: 233.3 kB / 3.773 GB, free: 24.64 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/9.229, allocations: 0 / 3.773 GB, free: 24.64 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005946/9.235, allocations: 1.173 MB / 3.775 GB, free: 24.62 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01041/9.245, allocations: 3.313 MB / 3.778 GB, free: 23.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001209/9.247, allocations: 0.638 MB / 3.778 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/9.247, allocations: 0 / 3.778 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004662/9.247, allocations: 412 kB / 3.779 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/9.248, allocations: 175.2 kB / 3.779 GB, free: 23.56 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004582/9.253, allocations: 1.439 MB / 3.78 GB, free: 23.26 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/9.253, allocations: 0.9456 MB / 3.781 GB, free: 22.55 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0009048/9.254, allocations: 0.6535 MB / 3.782 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/9.254, allocations: 229.6 kB / 3.782 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of SimCode: time 6.02e-07/9.254, allocations: 0 / 3.782 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07098/9.325, allocations: 38.09 MB / 3.819 GB, free: 20.38 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/9.326, allocations: 181.5 kB / 3.82 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.414/12.74, allocations: 4.953 kB / 3.82 GB, free: 20.18 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