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.001505/0.00151, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.078/2.078, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00111/0.00111, allocations: 86.69 kB / 267.5 MB, free: 14.04 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.2937/0.2937, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.396e-05/3.413e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1234, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.378/8.501, allocations: 2.761 GB / 3.233 GB, free: 77.44 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/8.502, allocations: 86.42 kB / 3.233 GB, free: 77.4 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 2.055/10.56, allocations: 401.4 MB / 3.625 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.763e-06/10.56, allocations: 0 / 3.625 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.078e-05/10.56, allocations: 14.62 kB / 3.625 GB, free: 71.45 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.006343/10.56, allocations: 1.536 MB / 3.627 GB, free: 70.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/10.56, allocations: 11.34 kB / 3.627 GB, free: 70.57 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001629/10.56, allocations: 83.22 kB / 3.627 GB, free: 70.51 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/10.57, allocations: 287.2 kB / 3.627 GB, free: 70.46 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/10.57, allocations: 460.2 kB / 3.628 GB, free: 70.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.403e-05/10.57, allocations: 35.41 kB / 3.628 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/10.57, allocations: 37.97 kB / 3.628 GB, free: 70.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002095/10.57, allocations: 0.6882 MB / 3.629 GB, free: 69.79 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/10.57, allocations: 7.75 kB / 3.629 GB, free: 69.78 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/10.57, allocations: 19.86 kB / 3.629 GB, free: 69.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/10.57, allocations: 11.44 kB / 3.629 GB, free: 69.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/10.57, allocations: 0.5693 MB / 3.629 GB, free: 69.61 MB / 0.5105 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.005007/10.58, allocations: 2.986 MB / 3.632 GB, free: 67.27 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/10.58, allocations: 478.8 kB / 3.632 GB, free: 67.12 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/10.58, allocations: 156.4 kB / 3.633 GB, free: 67.05 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1693/10.75, allocations: 55.75 MB / 3.687 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/10.75, allocations: 34.56 kB / 3.687 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 2.665e-06/10.75, allocations: 0 / 3.687 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.003261/10.75, allocations: 0.7267 MB / 3.688 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/10.75, allocations: 110.8 kB / 3.688 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005899/10.75, allocations: 361.5 kB / 3.688 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.331e-05/10.75, allocations: 29.7 kB / 3.688 GB, free: 22.67 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/10.75, allocations: 285.4 kB / 3.689 GB, free: 22.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000104/10.75, allocations: 102.1 kB / 3.689 GB, free: 22.31 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/10.75, allocations: 12 kB / 3.689 GB, free: 22.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.973e-05/10.75, allocations: 326.7 kB / 3.689 GB, free: 21.97 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/10.75, allocations: 109.6 kB / 3.689 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003511/10.75, allocations: 229.3 kB / 3.689 GB, free: 21.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/10.75, allocations: 133.8 kB / 3.689 GB, free: 21.49 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/10.75, allocations: 3.938 kB / 3.689 GB, free: 21.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001077/10.75, allocations: 407.2 kB / 3.69 GB, free: 21.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000284/10.76, allocations: 1.311 MB / 3.691 GB, free: 19.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/10.76, allocations: 4 kB / 3.691 GB, free: 19.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004846/10.76, allocations: 339.2 kB / 3.691 GB, free: 19.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006984/10.76, allocations: 91.03 kB / 3.692 GB, free: 19.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006716/10.76, allocations: 0.6027 MB / 3.692 GB, free: 18.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007853/10.76, allocations: 58.77 kB / 3.692 GB, free: 18.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/10.76, allocations: 22.81 kB / 3.692 GB, free: 18.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/10.76, allocations: 8.062 kB / 3.692 GB, free: 18.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001372/10.76, allocations: 335.5 kB / 3.693 GB, free: 18.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/10.76, allocations: 4.062 kB / 3.693 GB, free: 18.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/10.76, allocations: 8 kB / 3.693 GB, free: 18.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/10.77, allocations: 111.8 kB / 3.693 GB, free: 18.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-05/10.77, allocations: 15.77 kB / 3.693 GB, free: 18.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008623/10.77, allocations: 59.33 kB / 3.693 GB, free: 18.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.61e-05/10.77, allocations: 20 kB / 3.693 GB, free: 18.21 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 () * 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.0002838/10.77, allocations: 122.2 kB / 3.693 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/10.77, allocations: 47.47 kB / 3.693 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004726/10.77, allocations: 2.007 MB / 3.695 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.208e-05/10.77, allocations: 27.34 kB / 3.695 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/10.77, allocations: 4 kB / 3.695 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/10.77, allocations: 3.141 kB / 3.695 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/10.77, allocations: 1.007 MB / 3.696 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/10.77, allocations: 3.938 kB / 3.696 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008956/10.78, allocations: 83.83 kB / 3.696 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003493/10.78, allocations: 0.754 MB / 3.697 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/10.78, allocations: 15.98 kB / 3.697 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/10.78, allocations: 1.007 MB / 3.698 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/10.78, allocations: 0 / 3.698 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/10.78, allocations: 1.256 MB / 3.699 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006602/10.78, allocations: 263.4 kB / 3.699 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/10.78, allocations: 4.062 kB / 3.699 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007818/10.78, allocations: 47.95 kB / 3.699 GB, free: 11.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/10.78, allocations: 28.28 kB / 3.699 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.233e-05/10.78, allocations: 12 kB / 3.699 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0008377/10.79, allocations: 389.5 kB / 3.7 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.11e-07/10.79, allocations: 0 / 3.7 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007039/10.79, allocations: 1.202 MB / 3.701 GB, free: 10.12 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 () * 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.01586/10.81, allocations: 3.123 MB / 3.704 GB, free: 7.168 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002821/10.81, allocations: 0.7052 MB / 3.705 GB, free: 6.465 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/10.81, allocations: 0 / 3.705 GB, free: 6.465 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001256/10.81, allocations: 469.2 kB / 3.705 GB, free: 6.004 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003831/10.82, allocations: 256.1 kB / 3.705 GB, free: 5.762 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008483/10.83, allocations: 1.688 MB / 3.707 GB, free: 4.02 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000673/10.83, allocations: 0.9876 MB / 3.708 GB, free: 3.008 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000718/10.83, allocations: 291.3 kB / 3.708 GB, free: 2.727 MB / 0.5105 GB Notification: Performance of SimCode: time 1.353e-06/10.83, allocations: 0 / 3.708 GB, free: 2.727 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.165/14.99, allocations: 35.45 MB / 3.743 GB, free: 74.87 MB / 0.5261 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