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.001562/0.001567, allocations: 186.4 kB / 16.41 MB, free: 5.727 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.037/2.037, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001134/0.001134, allocations: 96.56 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5286/0.5286, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004856, allocations: 12 kB / 431.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1362, allocations: 58.83 MB / 490.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.967/9.103, allocations: 2.762 GB / 3.241 GB, free: 46.19 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/9.103, allocations: 92.81 kB / 3.241 GB, free: 46.14 MB / 0.4948 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.826/12.93, allocations: 0.667 GB / 3.908 GB, free: 45.91 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.284e-06/12.93, allocations: 2.734 kB / 3.908 GB, free: 45.91 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.191e-05/12.93, allocations: 22.94 kB / 3.908 GB, free: 45.91 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.01011/12.94, allocations: 2.278 MB / 3.91 GB, free: 45.07 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/12.94, allocations: 9.375 kB / 3.91 GB, free: 45.07 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004431/12.94, allocations: 128.9 kB / 3.91 GB, free: 45.04 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00806/12.95, allocations: 0.5652 MB / 3.911 GB, free: 44.99 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/12.95, allocations: 0.6805 MB / 3.911 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.353e-05/12.95, allocations: 62.06 kB / 3.911 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/12.95, allocations: 72.97 kB / 3.911 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005275/12.96, allocations: 1.386 MB / 3.913 GB, free: 44.43 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.054e-05/12.96, allocations: 8.547 kB / 3.913 GB, free: 44.43 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001529/12.96, allocations: 33.53 kB / 3.913 GB, free: 44.43 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/12.96, allocations: 20 kB / 3.913 GB, free: 44.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005579/12.96, allocations: 1.242 MB / 3.914 GB, free: 44.43 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01153/12.97, allocations: 5.736 MB / 3.92 GB, free: 40.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005198/12.98, allocations: 1.011 MB / 3.921 GB, free: 40.77 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1048/13.08, allocations: 32.15 MB / 3.952 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.914e-05/13.08, allocations: 48.06 kB / 3.952 GB, free: 21.19 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001297/13.09, allocations: 132.4 kB / 3.952 GB, free: 21.15 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=58): time 3.587e-06/13.09, allocations: 0 / 3.952 GB, free: 21.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58): time 0.01059/13.1, allocations: 1.879 MB / 3.954 GB, free: 20.87 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/13.1, allocations: 193.7 kB / 3.954 GB, free: 20.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/13.1, allocations: 0.5834 MB / 3.955 GB, free: 20.52 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001853/13.1, allocations: 36.73 kB / 3.955 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/13.1, allocations: 415.2 kB / 3.955 GB, free: 20.24 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/13.1, allocations: 198.2 kB / 3.955 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.303e-05/13.1, allocations: 15.31 kB / 3.955 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0009471/13.1, allocations: 338.1 kB / 3.956 GB, free: 35.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/13.1, allocations: 279.3 kB / 3.956 GB, free: 35.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/13.1, allocations: 0.5327 MB / 3.956 GB, free: 35.49 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/13.1, allocations: 337.1 kB / 3.957 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/13.1, allocations: 1.375 kB / 3.957 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003916/13.11, allocations: 0.9062 MB / 3.958 GB, free: 35.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001238/13.11, allocations: 2.965 MB / 3.961 GB, free: 32.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.716e-05/13.11, allocations: 7.5 kB / 3.961 GB, free: 32.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009838/13.12, allocations: 0.6429 MB / 3.961 GB, free: 32.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/13.12, allocations: 194.1 kB / 3.961 GB, free: 32.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/13.12, allocations: 1.168 MB / 3.963 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/13.12, allocations: 78.17 kB / 3.963 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001863/13.12, allocations: 42.47 kB / 3.963 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/13.12, allocations: 3.875 kB / 3.963 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003233/13.13, allocations: 0.7919 MB / 3.963 GB, free: 31.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/13.13, allocations: 7.062 kB / 3.963 GB, free: 31.26 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/13.13, allocations: 19.27 kB / 3.963 GB, free: 31.26 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/13.13, allocations: 226 kB / 3.964 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.092e-05/13.13, allocations: 13.97 kB / 3.964 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/13.13, allocations: 86.41 kB / 3.964 GB, free: 31.24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.994e-05/13.13, allocations: 41.5 kB / 3.964 GB, free: 31.24 MB / 0.5417 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 () * Number of clocked 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.0008032/13.13, allocations: 307.2 kB / 3.964 GB, free: 31.05 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003033/13.13, allocations: 90.94 kB / 3.964 GB, free: 31.01 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007293/13.14, allocations: 3.715 MB / 3.968 GB, free: 30.54 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.307e-05/13.14, allocations: 55.33 kB / 3.968 GB, free: 30.54 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/13.14, allocations: 0 / 3.968 GB, free: 30.54 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-05/13.14, allocations: 3.562 kB / 3.968 GB, free: 30.54 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/13.14, allocations: 1.785 MB / 3.97 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/13.14, allocations: 8.047 kB / 3.97 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/13.14, allocations: 159.5 kB / 3.97 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004078/13.15, allocations: 0.8777 MB / 3.971 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/13.15, allocations: 14.09 kB / 3.971 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00172/13.15, allocations: 1.565 MB / 3.972 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/13.15, allocations: 0 / 3.972 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004298/13.15, allocations: 2.178 MB / 3.974 GB, free: 28.65 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009711/13.15, allocations: 464.2 kB / 3.975 GB, free: 28.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002278/13.15, allocations: 17.11 kB / 3.975 GB, free: 28.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/13.16, allocations: 73.89 kB / 3.975 GB, free: 28.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/13.16, allocations: 60.52 kB / 3.975 GB, free: 28.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.489e-05/13.16, allocations: 33.48 kB / 3.975 GB, free: 28.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001462/13.16, allocations: 0.7572 MB / 3.976 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.51e-07/13.16, allocations: 0 / 3.976 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006955/13.16, allocations: 1.336 MB / 3.977 GB, free: 28.13 MB / 0.5417 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 () * Number of clocked 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.01469/13.18, allocations: 4.265 MB / 3.981 GB, free: 26.75 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005305/13.18, allocations: 1.522 MB / 3.983 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/13.18, allocations: 0 / 3.983 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002044/13.19, allocations: 0.8875 MB / 3.983 GB, free: 26.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004551/13.19, allocations: 0.49 MB / 3.984 GB, free: 26.66 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02087/13.21, allocations: 12.27 MB / 3.996 GB, free: 18.86 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009564/13.21, allocations: 1.29 MB / 3.997 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/13.21, allocations: 0.5517 MB / 3.998 GB, free: 18.11 MB / 0.5417 GB Notification: Performance of SimCode: time 1.463e-06/13.21, allocations: 0 / 3.998 GB, free: 18.11 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.965/17.18, allocations: 51.87 MB / 4.048 GB, free: 14.26 MB / 0.5417 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