Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00106/0.00106, allocations: 164.4 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.515/1.515, allocations: 170.6 MB / 178.7 MB, free: 15.64 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001717/0.001717, allocations: 111.4 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2121/0.2122, allocations: 37.99 MB / 295.1 MB, free: 9.496 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.27e-05, allocations: 2.906 kB / 350 MB, free: 37.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 48.72 MB / 398.7 MB, free: 5.344 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.238/6.349, allocations: 2.486 GB / 2.875 GB, free: 41.02 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/6.35, allocations: 79.95 kB / 2.875 GB, free: 40.94 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329: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.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329: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.514/8.864, allocations: 0.6379 GB / 3.513 GB, free: 34.29 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.443e-06/8.864, allocations: 2.406 kB / 3.513 GB, free: 34.29 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001181/8.864, allocations: 21 kB / 3.513 GB, free: 34.29 MB / 442.7 MB 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.01163/8.876, allocations: 2.108 MB / 3.515 GB, free: 33.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.593e-05/8.876, allocations: 11.03 kB / 3.515 GB, free: 33.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007321/8.883, allocations: 0.5334 MB / 3.516 GB, free: 32.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002618/8.886, allocations: 0.7043 MB / 3.516 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/8.886, allocations: 31.59 kB / 3.516 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003042/8.886, allocations: 49.88 kB / 3.516 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002249/8.889, allocations: 0.7353 MB / 3.517 GB, free: 32.24 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/8.891, allocations: 0.9125 MB / 3.518 GB, free: 31.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/8.891, allocations: 10.23 kB / 3.518 GB, free: 31.72 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/8.891, allocations: 2.344 kB / 3.518 GB, free: 31.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/8.891, allocations: 20.81 kB / 3.518 GB, free: 31.72 MB / 442.7 MB 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.5975/9.489, allocations: 109.4 MB / 3.625 GB, free: 29.26 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/9.49, allocations: 0.5017 MB / 3.625 GB, free: 29.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/9.49, allocations: 209.6 kB / 3.626 GB, free: 29.19 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05685/9.547, allocations: 29.15 MB / 3.654 GB, free: 28.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/9.547, allocations: 39.44 kB / 3.654 GB, free: 28.28 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000872/9.548, allocations: 112 kB / 3.654 GB, free: 28.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=46): time 5.681e-06/9.548, allocations: 0 / 3.654 GB, free: 28.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=46): time 0.004107/9.552, allocations: 1.054 MB / 3.655 GB, free: 28.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/9.552, allocations: 184.9 kB / 3.655 GB, free: 27.97 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007843/9.553, allocations: 474.5 kB / 3.656 GB, free: 27.84 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.021e-05/9.553, allocations: 27.02 kB / 3.656 GB, free: 27.81 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/9.554, allocations: 471.2 kB / 3.656 GB, free: 27.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/9.554, allocations: 154.2 kB / 3.657 GB, free: 27.52 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/9.554, allocations: 0 / 3.657 GB, free: 27.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/9.554, allocations: 386.7 kB / 3.657 GB, free: 27.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/9.554, allocations: 177 kB / 3.657 GB, free: 27.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/9.555, allocations: 494.5 kB / 3.658 GB, free: 26.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001922/9.557, allocations: 477.7 kB / 3.658 GB, free: 26.79 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/9.557, allocations: 6.906 kB / 3.658 GB, free: 26.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002762/9.559, allocations: 0.9568 MB / 3.659 GB, free: 26.69 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001595/9.561, allocations: 3.834 MB / 3.663 GB, free: 22.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/9.561, allocations: 14.45 kB / 3.663 GB, free: 22.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/9.561, allocations: 69.86 kB / 3.663 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006974/9.562, allocations: 198.5 kB / 3.663 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/9.564, allocations: 1.239 MB / 3.664 GB, free: 21.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009055/9.565, allocations: 61.7 kB / 3.664 GB, free: 21.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.34e-05/9.565, allocations: 51.81 kB / 3.664 GB, free: 21.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/9.565, allocations: 3.344 kB / 3.664 GB, free: 21.6 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001855/9.567, allocations: 0.7069 MB / 3.665 GB, free: 21.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/9.567, allocations: 9.406 kB / 3.665 GB, free: 21.58 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/9.567, allocations: 17.25 kB / 3.665 GB, free: 21.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007103/9.567, allocations: 217.5 kB / 3.665 GB, free: 21.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/9.567, allocations: 21.09 kB / 3.665 GB, free: 21.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007506/9.568, allocations: 50.64 kB / 3.665 GB, free: 21.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.678e-05/9.568, allocations: 48.95 kB / 3.665 GB, free: 21.57 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (96): * Single equations (assignments): 94 * 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 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002757/9.568, allocations: 135.7 kB / 3.665 GB, free: 21.47 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000222/9.569, allocations: 71.45 kB / 3.666 GB, free: 21.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003863/9.573, allocations: 2.804 MB / 3.668 GB, free: 21.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-05/9.573, allocations: 44.75 kB / 3.668 GB, free: 21.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/9.573, allocations: 0 / 3.668 GB, free: 21.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/9.573, allocations: 3.141 kB / 3.668 GB, free: 21.12 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/9.578, allocations: 3.696 MB / 3.672 GB, free: 20.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/9.578, allocations: 0 / 3.672 GB, free: 20.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/9.578, allocations: 101.6 kB / 3.672 GB, free: 20.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008453/9.579, allocations: 0.7238 MB / 3.673 GB, free: 20.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-05/9.579, allocations: 11.69 kB / 3.673 GB, free: 20.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/9.581, allocations: 1.638 MB / 3.674 GB, free: 19.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/9.581, allocations: 0 / 3.674 GB, free: 19.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/9.583, allocations: 1.934 MB / 3.676 GB, free: 19.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005946/9.584, allocations: 299.3 kB / 3.676 GB, free: 18.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/9.584, allocations: 3.844 kB / 3.676 GB, free: 18.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/9.585, allocations: 42.81 kB / 3.677 GB, free: 18.85 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/9.585, allocations: 48.2 kB / 3.677 GB, free: 18.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/9.585, allocations: 23.88 kB / 3.677 GB, free: 18.85 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005553/9.585, allocations: 384.3 kB / 3.677 GB, free: 18.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/9.585, allocations: 1.422 kB / 3.677 GB, free: 18.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006937/9.592, allocations: 1.234 MB / 3.678 GB, free: 18.66 MB / 474.7 MB 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 (56): * Single equations (assignments): 44 * 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 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01062/9.603, allocations: 1.934 MB / 3.68 GB, free: 18.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002899/9.606, allocations: 1.159 MB / 3.681 GB, free: 18.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/9.606, allocations: 0 / 3.681 GB, free: 18.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/9.607, allocations: 0.6741 MB / 3.682 GB, free: 18.31 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/9.61, allocations: 298.1 kB / 3.682 GB, free: 18.28 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6501/10.26, allocations: 195.8 MB / 3.873 GB, free: 67.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/10.26, allocations: 1.186 MB / 3.875 GB, free: 66.36 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001979/10.26, allocations: 1.323 MB / 3.876 GB, free: 65.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/10.26, allocations: 68.59 kB / 3.876 GB, free: 65.53 MB / 490.7 MB Notification: Performance of SimCode: time 8.72e-07/10.26, allocations: 0.9844 kB / 3.876 GB, free: 65.53 MB / 490.7 MB Notification: Performance of Templates: time 0.04841/10.31, allocations: 35.91 MB / 3.911 GB, free: 39.15 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1)