Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001134/0.001135, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.2 MB / 245 MB, free: 5.852 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009761/0.0009764, allocations: 106.5 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4299/0.4299, allocations: 45.23 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003287/0.000329, allocations: 8 kB / 468.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3494, allocations: 63.24 MB / 0.5192 GB, free: 37.61 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.355/6.704, allocations: 2.767 GB / 3.286 GB, free: 124.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/6.705, allocations: 84.02 kB / 3.286 GB, free: 124.7 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 1.505/8.21, allocations: 406.9 MB / 3.684 GB, free: 72.6 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.244e-06/8.21, allocations: 0 / 3.684 GB, free: 72.6 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.422e-05/8.21, allocations: 14.12 kB / 3.684 GB, free: 72.6 MB / 0.5417 GB 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.006485/8.216, allocations: 1.604 MB / 3.685 GB, free: 71.86 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/8.216, allocations: 7.656 kB / 3.685 GB, free: 71.86 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00244/8.219, allocations: 310.8 kB / 3.686 GB, free: 71.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009834/8.22, allocations: 455.7 kB / 3.686 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/8.22, allocations: 40.12 kB / 3.686 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.999e-05/8.22, allocations: 36.25 kB / 3.686 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/8.222, allocations: 0.6993 MB / 3.687 GB, free: 71.45 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/8.222, allocations: 3.906 kB / 3.687 GB, free: 71.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.639e-05/8.222, allocations: 22.45 kB / 3.687 GB, free: 71.45 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/8.222, allocations: 13.47 kB / 3.687 GB, free: 71.45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/8.223, allocations: 0.6092 MB / 3.687 GB, free: 71.44 MB / 0.5417 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.003293/8.227, allocations: 2.966 MB / 3.69 GB, free: 69.53 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/8.228, allocations: 0.4919 MB / 3.691 GB, free: 69.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09539/8.323, allocations: 61.81 MB / 3.751 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/8.323, allocations: 44 kB / 3.751 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 4.038e-06/8.323, allocations: 3.797 kB / 3.751 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.00452/8.328, allocations: 0.9907 MB / 3.752 GB, free: 44.72 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/8.328, allocations: 106.3 kB / 3.752 GB, free: 44.6 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005621/8.329, allocations: 359.2 kB / 3.753 GB, free: 44.48 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.006e-05/8.329, allocations: 30.58 kB / 3.753 GB, free: 44.45 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/8.329, allocations: 250.8 kB / 3.753 GB, free: 44.34 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 9.859e-05/8.329, allocations: 103.9 kB / 3.753 GB, free: 44.27 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.029e-05/8.329, allocations: 11.38 kB / 3.753 GB, free: 44.27 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000153/8.329, allocations: 359.4 kB / 3.753 GB, free: 43.95 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003395/8.329, allocations: 145.3 kB / 3.753 GB, free: 43.95 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004168/8.33, allocations: 267.8 kB / 3.754 GB, free: 43.81 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003718/8.33, allocations: 171.3 kB / 3.754 GB, free: 43.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/8.33, allocations: 0 / 3.754 GB, free: 43.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001059/8.331, allocations: 0.4989 MB / 3.754 GB, free: 43.73 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004935/8.332, allocations: 1.31 MB / 3.756 GB, free: 42.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/8.332, allocations: 3.219 kB / 3.756 GB, free: 42.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002557/8.334, allocations: 348.7 kB / 3.756 GB, free: 42.33 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003384/8.335, allocations: 85.88 kB / 3.756 GB, free: 42.33 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005004/8.335, allocations: 0.6066 MB / 3.757 GB, free: 41.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004879/8.336, allocations: 67.42 kB / 3.757 GB, free: 41.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/8.336, allocations: 20.78 kB / 3.757 GB, free: 41.79 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/8.336, allocations: 7 kB / 3.757 GB, free: 41.79 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007957/8.337, allocations: 416.1 kB / 3.757 GB, free: 41.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/8.337, allocations: 3.812 kB / 3.757 GB, free: 41.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.236e-06/8.337, allocations: 10.02 kB / 3.757 GB, free: 41.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/8.337, allocations: 113 kB / 3.757 GB, free: 41.76 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/8.337, allocations: 8.312 kB / 3.757 GB, free: 41.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004395/8.337, allocations: 63.34 kB / 3.757 GB, free: 41.74 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/8.338, allocations: 18.75 kB / 3.757 GB, free: 41.74 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (40): * Single equations (assignments): 39 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003356/8.338, allocations: 253.8 kB / 3.758 GB, free: 41.54 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/8.338, allocations: 41.5 kB / 3.758 GB, free: 41.52 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002256/8.34, allocations: 2.046 MB / 3.76 GB, free: 41.27 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.568e-05/8.34, allocations: 28.42 kB / 3.76 GB, free: 41.27 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/8.34, allocations: 0 / 3.76 GB, free: 41.27 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/8.34, allocations: 0 / 3.76 GB, free: 41.27 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/8.341, allocations: 1.01 MB / 3.761 GB, free: 41.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/8.341, allocations: 0 / 3.761 GB, free: 41.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/8.342, allocations: 82.86 kB / 3.761 GB, free: 41.01 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/8.343, allocations: 0.635 MB / 3.761 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.574e-05/8.343, allocations: 9.75 kB / 3.761 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007246/8.344, allocations: 1.007 MB / 3.762 GB, free: 40.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/8.344, allocations: 3.906 kB / 3.762 GB, free: 40.43 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001485/8.345, allocations: 1.34 MB / 3.764 GB, free: 40.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003881/8.346, allocations: 265 kB / 3.764 GB, free: 39.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/8.346, allocations: 3.5 kB / 3.764 GB, free: 39.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/8.346, allocations: 39.66 kB / 3.764 GB, free: 39.98 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.043e-05/8.346, allocations: 32.69 kB / 3.764 GB, free: 39.98 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/8.346, allocations: 13.11 kB / 3.764 GB, free: 39.98 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004192/8.347, allocations: 389.4 kB / 3.764 GB, free: 39.89 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.5e-07/8.347, allocations: 0 / 3.764 GB, free: 39.89 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005741/8.353, allocations: 1.22 MB / 3.765 GB, free: 39.71 MB / 0.5573 GB 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 (33): * Single equations (assignments): 26 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.009273/8.362, allocations: 1.631 MB / 3.767 GB, free: 39.34 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001858/8.364, allocations: 0.8146 MB / 3.768 GB, free: 39.32 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/8.364, allocations: 0 / 3.768 GB, free: 39.32 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006508/8.364, allocations: 498.3 kB / 3.768 GB, free: 39.31 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/8.366, allocations: 258.9 kB / 3.769 GB, free: 39.29 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/8.369, allocations: 1.971 MB / 3.771 GB, free: 38.38 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005401/8.369, allocations: 1.001 MB / 3.771 GB, free: 37.67 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008937/8.37, allocations: 0.5536 MB / 3.772 GB, free: 37.64 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/8.37, allocations: 51.38 kB / 3.772 GB, free: 37.64 MB / 0.5573 GB Notification: Performance of SimCode: time 9.01e-07/8.37, allocations: 0 / 3.772 GB, free: 37.64 MB / 0.5573 GB Notification: Performance of Templates: time 0.05098/8.421, allocations: 37.1 MB / 3.808 GB, free: 31.31 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches