Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.TestFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008191/0.00819, allocations: 165.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.39/1.39, allocations: 170.8 MB / 186.6 MB, free: 1.133 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.001686/0.001686, allocations: 106.6 kB / 226.2 MB, free: 10.11 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.3562/0.3562, allocations: 38.04 MB / 303.7 MB, free: 42.34 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004156/0.0004155, allocations: 8 kB / 362.9 MB, free: 5.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1291, allocations: 48.71 MB / 411.6 MB, free: 4.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.867/6.996, allocations: 2.485 GB / 2.887 GB, free: 118.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/6.996, allocations: 87.17 kB / 2.887 GB, free: 118.9 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 .... Notification: Performance of FrontEnd - DAE generated: time 1.592/8.589, allocations: 390.5 MB / 3.269 GB, free: 37.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.705e-06/8.589, allocations: 0 / 3.269 GB, free: 37.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.389e-05/8.589, allocations: 18.3 kB / 3.269 GB, free: 37.82 MB / 426.7 MB 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.00753/8.596, allocations: 1.546 MB / 3.27 GB, free: 36.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/8.596, allocations: 11.06 kB / 3.27 GB, free: 36.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002442/8.599, allocations: 278.3 kB / 3.271 GB, free: 36.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/8.6, allocations: 462.7 kB / 3.271 GB, free: 36.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.828e-05/8.6, allocations: 40 kB / 3.271 GB, free: 36.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/8.6, allocations: 48.14 kB / 3.271 GB, free: 36.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/8.602, allocations: 0.6824 MB / 3.272 GB, free: 36.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/8.602, allocations: 0 / 3.272 GB, free: 36.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.07e-05/8.602, allocations: 18.59 kB / 3.272 GB, free: 36.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/8.602, allocations: 11.78 kB / 3.272 GB, free: 36.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/8.604, allocations: 0.6133 MB / 3.272 GB, free: 36.02 MB / 426.7 MB 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.003427/8.607, allocations: 2.867 MB / 3.275 GB, free: 33.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/8.608, allocations: 453.2 kB / 3.276 GB, free: 33.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5604/9.169, allocations: 95.71 MB / 3.369 GB, free: 64.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.911e-05/9.169, allocations: 33.31 kB / 3.369 GB, free: 64.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=30): time 4.799e-06/9.169, allocations: 0 / 3.369 GB, free: 64.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=30): time 0.003644/9.173, allocations: 0.8963 MB / 3.37 GB, free: 64.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/9.173, allocations: 108.9 kB / 3.37 GB, free: 64.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/9.173, allocations: 311.6 kB / 3.37 GB, free: 64.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.349e-05/9.173, allocations: 30.36 kB / 3.37 GB, free: 64.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/9.174, allocations: 266.2 kB / 3.371 GB, free: 64.03 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/9.174, allocations: 101.5 kB / 3.371 GB, free: 63.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/9.174, allocations: 6.188 kB / 3.371 GB, free: 63.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/9.174, allocations: 355.4 kB / 3.371 GB, free: 63.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/9.175, allocations: 131.5 kB / 3.371 GB, free: 63.67 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004801/9.175, allocations: 285.6 kB / 3.371 GB, free: 63.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000447/9.176, allocations: 165.8 kB / 3.372 GB, free: 63.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/9.176, allocations: 0 / 3.372 GB, free: 63.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001181/9.177, allocations: 0.4902 MB / 3.372 GB, free: 63.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006092/9.177, allocations: 1.749 MB / 3.374 GB, free: 61.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/9.177, allocations: 2.938 kB / 3.374 GB, free: 61.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001806/9.179, allocations: 203.2 kB / 3.374 GB, free: 61.62 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/9.18, allocations: 103.8 kB / 3.374 GB, free: 61.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004835/9.18, allocations: 0.5885 MB / 3.375 GB, free: 61.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005343/9.181, allocations: 65.61 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.912e-05/9.181, allocations: 23.19 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/9.181, allocations: 5.531 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000869/9.182, allocations: 409.4 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/9.182, allocations: 5.188 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/9.182, allocations: 4.969 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/9.182, allocations: 113.7 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/9.182, allocations: 9.281 kB / 3.375 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004511/9.182, allocations: 60.3 kB / 3.375 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/9.183, allocations: 22.06 kB / 3.375 GB, free: 61.07 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003521/9.183, allocations: 254.8 kB / 3.376 GB, free: 60.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/9.183, allocations: 44.84 kB / 3.376 GB, free: 60.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/9.186, allocations: 1.979 MB / 3.378 GB, free: 60.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.074e-05/9.186, allocations: 24.86 kB / 3.378 GB, free: 60.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/9.186, allocations: 9.375 kB / 3.378 GB, free: 60.67 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/9.186, allocations: 4.406 kB / 3.378 GB, free: 60.67 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/9.187, allocations: 0.9894 MB / 3.379 GB, free: 60.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/9.187, allocations: 0 / 3.379 GB, free: 60.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/9.187, allocations: 65.97 kB / 3.379 GB, free: 60.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/9.189, allocations: 0.5836 MB / 3.379 GB, free: 60.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.503e-05/9.189, allocations: 7.875 kB / 3.379 GB, free: 60.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000727/9.189, allocations: 1.007 MB / 3.38 GB, free: 59.87 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/9.189, allocations: 0 / 3.38 GB, free: 59.87 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/9.191, allocations: 1.284 MB / 3.381 GB, free: 59.62 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003982/9.191, allocations: 250 kB / 3.382 GB, free: 59.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.902e-05/9.192, allocations: 9.453 kB / 3.382 GB, free: 59.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003402/9.192, allocations: 35.77 kB / 3.382 GB, free: 59.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.098e-05/9.192, allocations: 34.12 kB / 3.382 GB, free: 59.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/9.192, allocations: 13.97 kB / 3.382 GB, free: 59.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003589/9.192, allocations: 309.8 kB / 3.382 GB, free: 59.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/9.192, allocations: 0 / 3.382 GB, free: 59.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007226/9.2, allocations: 1.198 MB / 3.383 GB, free: 59.37 MB / 458.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 27 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01149/9.211, allocations: 1.59 MB / 3.385 GB, free: 59.21 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002215/9.213, allocations: 0.7865 MB / 3.386 GB, free: 59.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/9.213, allocations: 0.9375 kB / 3.386 GB, free: 59.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008445/9.214, allocations: 488.3 kB / 3.386 GB, free: 59.19 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/9.216, allocations: 200.1 kB / 3.386 GB, free: 59.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6082/9.824, allocations: 150.3 MB / 3.533 GB, free: 75.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/9.825, allocations: 1.004 MB / 3.534 GB, free: 74.32 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009915/9.826, allocations: 0.5262 MB / 3.534 GB, free: 74.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/9.826, allocations: 44.09 kB / 3.535 GB, free: 74.32 MB / 458.7 MB Notification: Performance of SimCode: time 2.064e-06/9.826, allocations: 0 / 3.535 GB, free: 74.32 MB / 458.7 MB Notification: Performance of Templates: time 0.06564/9.891, allocations: 35.3 MB / 3.569 GB, free: 73.5 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1)