Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001033/0.001033, allocations: 196.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009136/0.0009137, allocations: 96.03 kB / 286.7 MB, free: 5.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2093/0.2093, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.359e-05/1.362e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.865/6.973, allocations: 2.766 GB / 3.27 GB, free: 145.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/6.973, allocations: 83.2 kB / 3.27 GB, free: 145.9 MB / 0.5261 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.376/8.349, allocations: 412.5 MB / 3.673 GB, free: 70.03 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.963e-06/8.349, allocations: 0 / 3.673 GB, free: 70.03 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.798e-05/8.349, allocations: 10.02 kB / 3.673 GB, free: 70.03 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.006704/8.355, allocations: 1.533 MB / 3.675 GB, free: 69.31 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/8.355, allocations: 7.875 kB / 3.675 GB, free: 69.31 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/8.357, allocations: 254.9 kB / 3.675 GB, free: 69.29 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006758/8.358, allocations: 427.8 kB / 3.675 GB, free: 69.07 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/8.358, allocations: 16.98 kB / 3.675 GB, free: 69.07 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.086e-05/8.358, allocations: 22.28 kB / 3.675 GB, free: 69.07 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005133/8.359, allocations: 356.8 kB / 3.676 GB, free: 69.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/8.359, allocations: 478.3 kB / 3.676 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/8.359, allocations: 5.344 kB / 3.676 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/8.359, allocations: 0 / 3.676 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/8.359, allocations: 11.28 kB / 3.676 GB, free: 68.88 MB / 0.5261 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.05779/8.417, allocations: 39.22 MB / 3.714 GB, free: 43.15 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/8.418, allocations: 224.8 kB / 3.715 GB, free: 43.13 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/8.418, allocations: 99.33 kB / 3.715 GB, free: 43.12 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1028/8.521, allocations: 62 MB / 3.775 GB, free: 33.38 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/8.521, allocations: 40.8 kB / 3.775 GB, free: 33.34 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=22): time 2.234e-06/8.521, allocations: 0 / 3.775 GB, free: 33.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=22): time 0.002152/8.523, allocations: 0.5326 MB / 3.776 GB, free: 33.27 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/8.523, allocations: 109.8 kB / 3.776 GB, free: 33.14 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004216/8.523, allocations: 292.8 kB / 3.776 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.024e-05/8.523, allocations: 25.7 kB / 3.776 GB, free: 33 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/8.524, allocations: 277 kB / 3.776 GB, free: 32.84 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 6.285e-05/8.524, allocations: 77.05 kB / 3.777 GB, free: 32.79 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.921e-05/8.524, allocations: 0 / 3.777 GB, free: 32.79 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001384/8.524, allocations: 346 kB / 3.777 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/8.524, allocations: 88.12 kB / 3.777 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/8.524, allocations: 250.5 kB / 3.777 GB, free: 32.27 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/8.525, allocations: 244.3 kB / 3.777 GB, free: 32.26 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/8.525, allocations: 0 / 3.777 GB, free: 32.26 MB / 0.5573 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001331/8.527, allocations: 0.4981 MB / 3.778 GB, free: 32.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006903/8.527, allocations: 2.01 MB / 3.78 GB, free: 30.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/8.527, allocations: 3.594 kB / 3.78 GB, free: 30.09 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000215/8.528, allocations: 53.17 kB / 3.78 GB, free: 30.08 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/8.528, allocations: 103.1 kB / 3.78 GB, free: 30.08 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008524/8.529, allocations: 0.6615 MB / 3.781 GB, free: 29.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004892/8.529, allocations: 76.73 kB / 3.781 GB, free: 29.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/8.529, allocations: 24.58 kB / 3.781 GB, free: 29.53 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/8.529, allocations: 7.531 kB / 3.781 GB, free: 29.53 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008298/8.53, allocations: 351.5 kB / 3.781 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/8.53, allocations: 7.031 kB / 3.781 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.464e-06/8.53, allocations: 10.94 kB / 3.781 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003619/8.531, allocations: 119.7 kB / 3.781 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/8.531, allocations: 7.531 kB / 3.781 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/8.531, allocations: 57.16 kB / 3.781 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/8.531, allocations: 25.16 kB / 3.781 GB, free: 29.49 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * 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.0001321/8.531, allocations: 120.6 kB / 3.781 GB, free: 29.38 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.964e-05/8.531, allocations: 42.28 kB / 3.781 GB, free: 29.36 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/8.533, allocations: 1.469 MB / 3.783 GB, free: 29.19 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/8.533, allocations: 25.58 kB / 3.783 GB, free: 29.19 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/8.533, allocations: 3.953 kB / 3.783 GB, free: 29.18 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/8.533, allocations: 3.797 kB / 3.783 GB, free: 29.18 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/8.535, allocations: 2.041 MB / 3.785 GB, free: 28.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/8.535, allocations: 0 / 3.785 GB, free: 28.79 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/8.535, allocations: 57.16 kB / 3.785 GB, free: 28.79 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005048/8.536, allocations: 0.5797 MB / 3.786 GB, free: 28.76 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.839e-05/8.536, allocations: 7.859 kB / 3.786 GB, free: 28.76 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008991/8.537, allocations: 1.106 MB / 3.787 GB, free: 28.22 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/8.537, allocations: 4.344 kB / 3.787 GB, free: 28.22 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/8.538, allocations: 1.174 MB / 3.788 GB, free: 27.93 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/8.538, allocations: 179.8 kB / 3.788 GB, free: 27.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.637e-05/8.538, allocations: 3.891 kB / 3.788 GB, free: 27.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/8.539, allocations: 36.92 kB / 3.788 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.028e-05/8.539, allocations: 22.78 kB / 3.788 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/8.539, allocations: 16.8 kB / 3.788 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002036/8.539, allocations: 220.7 kB / 3.788 GB, free: 27.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2e-07/8.539, allocations: 0 / 3.788 GB, free: 27.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.004902/8.544, allocations: 1.182 MB / 3.789 GB, free: 27.51 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.009217/8.553, allocations: 1.744 MB / 3.791 GB, free: 27.13 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001255/8.554, allocations: 0.613 MB / 3.792 GB, free: 27.11 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/8.554, allocations: 0 / 3.792 GB, free: 27.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004885/8.555, allocations: 390.2 kB / 3.792 GB, free: 27.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/8.556, allocations: 167.1 kB / 3.792 GB, free: 27.09 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/8.557, allocations: 0.9248 MB / 3.793 GB, free: 26.81 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/8.558, allocations: 0.9415 MB / 3.794 GB, free: 26.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008367/8.559, allocations: 0.518 MB / 3.795 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.853e-05/8.559, allocations: 32.94 kB / 3.795 GB, free: 26.08 MB / 0.5573 GB Notification: Performance of SimCode: time 9.71e-07/8.559, allocations: 0 / 3.795 GB, free: 26.08 MB / 0.5573 GB Notification: Performance of Templates: time 0.04262/8.602, allocations: 30.47 MB / 3.824 GB, free: 6.719 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestPressure/TestPressure.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches