Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",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.002318/0.002318, allocations: 180.3 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.3 MB / 214.1 MB, free: 14.07 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.00115, allocations: 86.55 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3029/0.3029, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.251e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4255, allocations: 58.86 MB / 477.2 MB, free: 5.168 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.183/8.609, allocations: 2.761 GB / 3.227 GB, free: 24.84 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/8.609, allocations: 92.12 kB / 3.227 GB, free: 24.79 MB / 0.4952 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 .... [/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 3.819/12.43, allocations: 0.659 GB / 3.886 GB, free: 46 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.604e-06/12.43, allocations: 0 / 3.886 GB, free: 46 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 9.476e-05/12.43, allocations: 24.22 kB / 3.886 GB, free: 46 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.01223/12.44, allocations: 2.193 MB / 3.888 GB, free: 45.05 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/12.44, allocations: 10.84 kB / 3.888 GB, free: 45.05 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01222/12.45, allocations: 0.5743 MB / 3.889 GB, free: 45 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00298/12.46, allocations: 0.666 MB / 3.889 GB, free: 44.73 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/12.46, allocations: 29.78 kB / 3.889 GB, free: 44.73 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002033/12.46, allocations: 42.81 kB / 3.89 GB, free: 44.73 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003042/12.46, allocations: 0.7559 MB / 3.89 GB, free: 44.73 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/12.46, allocations: 0.9298 MB / 3.891 GB, free: 44.44 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.345e-05/12.46, allocations: 5 kB / 3.891 GB, free: 44.44 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/12.46, allocations: 6.703 kB / 3.891 GB, free: 44.44 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.348e-05/12.46, allocations: 25.8 kB / 3.891 GB, free: 44.44 MB / 0.5108 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.3767/12.84, allocations: 102.3 MB / 3.991 GB, free: 27.71 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/12.84, allocations: 0.5413 MB / 3.992 GB, free: 27.66 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005633/12.84, allocations: 222.8 kB / 3.992 GB, free: 27.64 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1058/12.95, allocations: 32.27 MB / 4.023 GB, free: 22.56 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/12.95, allocations: 44.94 kB / 4.023 GB, free: 22.52 MB / 0.5733 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00109/12.95, allocations: 99.28 kB / 4.023 GB, free: 22.44 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=46): time 3.196e-06/12.95, allocations: 0 / 4.023 GB, free: 22.44 MB / 0.5733 GB Notification: Performance of matching and sorting (n=46): time 0.006315/12.95, allocations: 1.153 MB / 4.025 GB, free: 21.75 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/12.95, allocations: 186.8 kB / 4.025 GB, free: 21.53 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00079/12.96, allocations: 463.8 kB / 4.025 GB, free: 21.22 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0001279/12.96, allocations: 35.77 kB / 4.025 GB, free: 21.18 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003185/12.96, allocations: 482.2 kB / 4.026 GB, free: 20.82 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/12.96, allocations: 154.3 kB / 4.026 GB, free: 20.71 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.709e-05/12.96, allocations: 0 / 4.026 GB, free: 20.71 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0001509/12.96, allocations: 340.8 kB / 4.026 GB, free: 20.39 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000488/12.96, allocations: 189.7 kB / 4.026 GB, free: 20.28 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006147/12.96, allocations: 455.5 kB / 4.027 GB, free: 19.84 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003299/12.96, allocations: 0.4899 MB / 4.027 GB, free: 19.57 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/12.96, allocations: 0 / 4.027 GB, free: 19.57 MB / 0.5733 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004578/12.97, allocations: 0.9259 MB / 4.028 GB, free: 19 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.00121/12.97, allocations: 2.964 MB / 4.031 GB, free: 15.88 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/12.97, allocations: 9.094 kB / 4.031 GB, free: 15.87 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004968/12.97, allocations: 89.33 kB / 4.031 GB, free: 15.8 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/12.97, allocations: 192.7 kB / 4.031 GB, free: 15.66 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/12.97, allocations: 1.292 MB / 4.033 GB, free: 14.46 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/12.97, allocations: 104.5 kB / 4.033 GB, free: 14.38 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/12.97, allocations: 44.72 kB / 4.033 GB, free: 14.35 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/12.97, allocations: 4 kB / 4.033 GB, free: 14.34 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003015/12.98, allocations: 0.6979 MB / 4.033 GB, free: 13.94 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/12.98, allocations: 8 kB / 4.033 GB, free: 13.93 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/12.98, allocations: 12 kB / 4.033 GB, free: 13.92 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/12.98, allocations: 219.5 kB / 4.034 GB, free: 13.76 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/12.98, allocations: 24.05 kB / 4.034 GB, free: 13.75 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/12.98, allocations: 83.02 kB / 4.034 GB, free: 13.69 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.229e-05/12.98, allocations: 41.81 kB / 4.034 GB, free: 13.66 MB / 0.5733 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003043/12.98, allocations: 133.8 kB / 4.034 GB, free: 13.54 MB / 0.5733 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003782/12.98, allocations: 0.6983 MB / 4.035 GB, free: 13.08 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/12.98, allocations: 78.67 kB / 4.035 GB, free: 13.01 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005506/12.99, allocations: 2.839 MB / 4.037 GB, free: 11.46 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.742e-05/12.99, allocations: 45.59 kB / 4.038 GB, free: 11.44 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/12.99, allocations: 4 kB / 4.038 GB, free: 11.44 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/12.99, allocations: 3.656 kB / 4.038 GB, free: 11.44 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006835/13, allocations: 3.786 MB / 4.041 GB, free: 9.41 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/13, allocations: 0 / 4.041 GB, free: 9.41 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007544/13, allocations: 114.6 kB / 4.041 GB, free: 9.328 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/13, allocations: 0.738 MB / 4.042 GB, free: 8.801 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.419e-05/13, allocations: 14.33 kB / 4.042 GB, free: 8.793 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/13, allocations: 1.676 MB / 4.044 GB, free: 7.41 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/13, allocations: 6.844 kB / 4.044 GB, free: 7.406 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003936/13, allocations: 1.96 MB / 4.046 GB, free: 6.125 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006287/13, allocations: 313.9 kB / 4.046 GB, free: 5.875 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/13.01, allocations: 4 kB / 4.046 GB, free: 5.871 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009954/13.01, allocations: 57.2 kB / 4.046 GB, free: 5.828 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/13.01, allocations: 53.78 kB / 4.046 GB, free: 5.801 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-05/13.01, allocations: 25.23 kB / 4.046 GB, free: 5.785 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.0007259/13.01, allocations: 442 kB / 4.046 GB, free: 5.5 MB / 0.5733 GB Notification: Performance of sort global known variables: time 5.01e-07/13.01, allocations: 0 / 4.046 GB, free: 5.5 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.00624/13.01, allocations: 1.27 MB / 4.048 GB, free: 4.32 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 22 ($cse9.phase,$cse9.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01375/13.03, allocations: 4.495 MB / 4.052 GB, free: 0.9023 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.003172/13.03, allocations: 1.143 MB / 4.053 GB, free: 252 kB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/13.03, allocations: 5.031 kB / 4.053 GB, free: 252 kB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.4067/13.44, allocations: 0.7068 MB / 4.054 GB, free: 107.4 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003339/13.44, allocations: 294 kB / 4.054 GB, free: 107.4 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00885/13.45, allocations: 2.271 MB / 4.056 GB, free: 106.9 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007722/13.45, allocations: 1.176 MB / 4.058 GB, free: 106.2 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008714/13.45, allocations: 464.8 kB / 4.058 GB, free: 106.2 MB / 0.5733 GB Notification: Performance of SimCode: time 2.936e-06/13.45, allocations: 0 / 4.058 GB, free: 106.2 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.016/17.47, allocations: 47.91 MB / 4.105 GB, free: 104.2 MB / 0.5733 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat