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.001514/0.001514, allocations: 182 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.079/2.079, 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.001126/0.001126, allocations: 86.64 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.3219/0.3219, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.382e-05/4.409e-05, allocations: 7.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1222, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.229/8.351, allocations: 2.762 GB / 3.234 GB, free: 80.91 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/8.352, allocations: 86.03 kB / 3.235 GB, free: 80.88 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 .... [/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.314/11.67, allocations: 0.665 GB / 3.9 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.793e-06/11.67, allocations: 0 / 3.9 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.815e-05/11.67, allocations: 23.98 kB / 3.9 GB, free: 13.76 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009176/11.68, allocations: 2.19 MB / 3.902 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/11.68, allocations: 12.03 kB / 3.902 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003409/11.68, allocations: 122.6 kB / 3.902 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007366/11.68, allocations: 0.5784 MB / 3.902 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/11.69, allocations: 0.662 MB / 3.903 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/11.69, allocations: 66.69 kB / 3.903 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002622/11.69, allocations: 76 kB / 3.903 GB, free: 9.957 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005211/11.69, allocations: 1.382 MB / 3.905 GB, free: 8.473 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/11.69, allocations: 0 / 3.905 GB, free: 8.473 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/11.69, allocations: 36 kB / 3.905 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/11.69, allocations: 20 kB / 3.905 GB, free: 8.418 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004241/11.7, allocations: 1.16 MB / 3.906 GB, free: 7.262 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.0107/11.71, allocations: 5.732 MB / 3.911 GB, free: 1.172 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003812/11.71, allocations: 0.9601 MB / 3.912 GB, free: 200 kB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008082/11.71, allocations: 280.2 kB / 3.913 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.518/12.23, allocations: 32.26 MB / 3.944 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/12.23, allocations: 43.23 kB / 3.944 GB, free: 39.72 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001312/12.23, allocations: 133.2 kB / 3.944 GB, free: 39.72 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=58): time 4.479e-06/12.23, allocations: 0.6875 kB / 3.944 GB, free: 39.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58): time 0.007374/12.24, allocations: 1.383 MB / 3.946 GB, free: 39.67 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.982e-05/12.24, allocations: 198 kB / 3.946 GB, free: 39.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/12.24, allocations: 0.5798 MB / 3.946 GB, free: 39.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002014/12.24, allocations: 36.86 kB / 3.946 GB, free: 39.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/12.24, allocations: 414.8 kB / 3.947 GB, free: 39.06 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003192/12.24, allocations: 199.2 kB / 3.947 GB, free: 38.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.868e-05/12.24, allocations: 15.84 kB / 3.947 GB, free: 38.97 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001055/12.24, allocations: 339.4 kB / 3.947 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007008/12.24, allocations: 203.5 kB / 3.948 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000895/12.24, allocations: 470.1 kB / 3.948 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007925/12.24, allocations: 253.5 kB / 3.948 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/12.24, allocations: 2.484 kB / 3.948 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00243/12.25, allocations: 0.7562 MB / 3.949 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000745/12.25, allocations: 2.962 MB / 3.952 GB, free: 35.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.801e-05/12.25, allocations: 7.594 kB / 3.952 GB, free: 35.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00964/12.26, allocations: 0.6346 MB / 3.952 GB, free: 35.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/12.26, allocations: 193.3 kB / 3.953 GB, free: 35.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/12.26, allocations: 1.165 MB / 3.954 GB, free: 34.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/12.26, allocations: 84.03 kB / 3.954 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/12.26, allocations: 43.27 kB / 3.954 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/12.26, allocations: 4.406 kB / 3.954 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002271/12.26, allocations: 0.6473 MB / 3.955 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/12.26, allocations: 8.578 kB / 3.955 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.949e-05/12.26, allocations: 11.88 kB / 3.955 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/12.27, allocations: 225.6 kB / 3.955 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.154e-05/12.27, allocations: 19.95 kB / 3.955 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/12.27, allocations: 84.33 kB / 3.955 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/12.27, allocations: 40.81 kB / 3.955 GB, free: 34.13 MB / 0.5261 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 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.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.0004094/12.27, allocations: 152.9 kB / 3.955 GB, free: 34.03 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000367/12.27, allocations: 90.38 kB / 3.955 GB, free: 33.98 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00655/12.27, allocations: 3.64 MB / 3.959 GB, free: 33.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.831e-05/12.27, allocations: 47.08 kB / 3.959 GB, free: 33.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/12.27, allocations: 3 kB / 3.959 GB, free: 33.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.283e-05/12.27, allocations: 6.844 kB / 3.959 GB, free: 33.62 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003165/12.28, allocations: 1.782 MB / 3.96 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/12.28, allocations: 0 / 3.96 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/12.28, allocations: 158.2 kB / 3.961 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004186/12.28, allocations: 1.002 MB / 3.962 GB, free: 33.33 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/12.28, allocations: 21.38 kB / 3.962 GB, free: 33.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/12.28, allocations: 1.562 MB / 3.963 GB, free: 32.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/12.28, allocations: 3.938 kB / 3.963 GB, free: 32.29 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/12.29, allocations: 2.03 MB / 3.965 GB, free: 31.81 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/12.29, allocations: 453.1 kB / 3.966 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003867/12.29, allocations: 16.8 kB / 3.966 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/12.29, allocations: 75.55 kB / 3.966 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/12.29, allocations: 67.66 kB / 3.966 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.273e-05/12.29, allocations: 27.19 kB / 3.966 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001528/12.29, allocations: 0.7458 MB / 3.966 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.31e-07/12.29, allocations: 0 / 3.966 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007951/12.3, allocations: 1.334 MB / 3.968 GB, free: 31.48 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.01354/12.32, allocations: 4.11 MB / 3.972 GB, free: 30.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003734/12.32, allocations: 1.313 MB / 3.973 GB, free: 30.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/12.32, allocations: 0 / 3.973 GB, free: 30.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001754/12.32, allocations: 0.8102 MB / 3.974 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005864/12.33, allocations: 491 kB / 3.974 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00941/12.34, allocations: 2.721 MB / 3.977 GB, free: 29.62 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008324/12.34, allocations: 1.289 MB / 3.978 GB, free: 28.91 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/12.34, allocations: 0.554 MB / 3.979 GB, free: 28.9 MB / 0.5261 GB Notification: Performance of SimCode: time 2.194e-06/12.34, allocations: 0 / 3.979 GB, free: 28.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.235/16.57, allocations: 53.04 MB / 4.031 GB, free: 25.83 MB / 0.5261 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