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.001041/0.001041, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001061/0.00106, allocations: 105.4 kB / 286.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2068/0.2068, allocations: 45.14 MB / 383.7 MB, free: 224 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.574e-05/1.589e-05, allocations: 0 / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.994/7.101, allocations: 2.766 GB / 3.271 GB, free: 78.64 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/7.101, allocations: 84.38 kB / 3.271 GB, free: 78.61 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.341/8.442, allocations: 401.8 MB / 3.663 GB, free: 71.41 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.673e-06/8.443, allocations: 0 / 3.663 GB, free: 71.41 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.822e-05/8.443, allocations: 17.53 kB / 3.663 GB, free: 71.41 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005105/8.448, allocations: 1.546 MB / 3.665 GB, free: 70.52 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/8.448, allocations: 7.188 kB / 3.665 GB, free: 70.52 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002064/8.45, allocations: 307.5 kB / 3.665 GB, free: 70.47 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000684/8.45, allocations: 458 kB / 3.665 GB, free: 70.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/8.451, allocations: 18.05 kB / 3.665 GB, free: 70.14 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/8.451, allocations: 23.97 kB / 3.665 GB, free: 70.14 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005193/8.451, allocations: 366 kB / 3.666 GB, free: 70.01 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005651/8.452, allocations: 472.6 kB / 3.666 GB, free: 69.75 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/8.452, allocations: 7.672 kB / 3.666 GB, free: 69.74 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/8.452, allocations: 0 / 3.666 GB, free: 69.74 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/8.452, allocations: 11.59 kB / 3.666 GB, free: 69.74 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.08462/8.536, allocations: 56.79 MB / 3.722 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004901/8.537, allocations: 262.3 kB / 3.722 GB, free: 24.17 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/8.537, allocations: 123.8 kB / 3.722 GB, free: 24.05 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4167/8.954, allocations: 61.99 MB / 3.783 GB, free: 76.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/8.954, allocations: 40 kB / 3.783 GB, free: 76.63 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=24): time 1.914e-06/8.954, allocations: 0 / 3.783 GB, free: 76.63 MB / 0.5417 GB Notification: Performance of matching and sorting (n=24): time 0.002526/8.956, allocations: 0.6203 MB / 3.783 GB, free: 76.59 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/8.957, allocations: 109.1 kB / 3.783 GB, free: 76.46 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004976/8.957, allocations: 297.7 kB / 3.784 GB, free: 76.37 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/8.957, allocations: 25.7 kB / 3.784 GB, free: 76.34 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/8.957, allocations: 275.4 kB / 3.784 GB, free: 76.21 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.477e-05/8.957, allocations: 79.67 kB / 3.784 GB, free: 76.17 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.897e-05/8.957, allocations: 2 kB / 3.784 GB, free: 76.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.969e-05/8.957, allocations: 350.2 kB / 3.784 GB, free: 75.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/8.958, allocations: 99.2 kB / 3.784 GB, free: 75.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/8.958, allocations: 216.6 kB / 3.785 GB, free: 75.72 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/8.959, allocations: 253.8 kB / 3.785 GB, free: 75.72 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/8.959, allocations: 2.219 kB / 3.785 GB, free: 75.72 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001545/8.961, allocations: 0.518 MB / 3.785 GB, free: 75.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002634/8.961, allocations: 1.309 MB / 3.787 GB, free: 74.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/8.961, allocations: 3.531 kB / 3.787 GB, free: 74.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002161/8.961, allocations: 50.83 kB / 3.787 GB, free: 74.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/8.962, allocations: 94.98 kB / 3.787 GB, free: 74.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007841/8.962, allocations: 0.6623 MB / 3.787 GB, free: 73.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/8.963, allocations: 78.62 kB / 3.787 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/8.963, allocations: 20.31 kB / 3.787 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/8.963, allocations: 5 kB / 3.787 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009621/8.964, allocations: 375.4 kB / 3.788 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/8.964, allocations: 2.719 kB / 3.788 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/8.964, allocations: 6.094 kB / 3.788 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003882/8.964, allocations: 111.6 kB / 3.788 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/8.964, allocations: 7.781 kB / 3.788 GB, free: 73.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004155/8.965, allocations: 63.69 kB / 3.788 GB, free: 73.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/8.965, allocations: 17.53 kB / 3.788 GB, free: 73.75 MB / 0.5417 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 (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 (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.0001253/8.965, allocations: 116.9 kB / 3.788 GB, free: 73.65 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.002e-05/8.965, allocations: 34.5 kB / 3.788 GB, free: 73.63 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/8.967, allocations: 1.584 MB / 3.79 GB, free: 73.48 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/8.967, allocations: 22.48 kB / 3.79 GB, free: 73.48 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/8.968, allocations: 3.953 kB / 3.79 GB, free: 73.48 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/8.968, allocations: 0 / 3.79 GB, free: 73.48 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/8.97, allocations: 2.202 MB / 3.792 GB, free: 73.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/8.97, allocations: 0 / 3.792 GB, free: 73.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/8.971, allocations: 51.81 kB / 3.792 GB, free: 73.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006192/8.971, allocations: 0.5893 MB / 3.793 GB, free: 73.07 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/8.971, allocations: 10.58 kB / 3.793 GB, free: 73.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/8.972, allocations: 1.11 MB / 3.794 GB, free: 72.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/8.972, allocations: 0 / 3.794 GB, free: 72.54 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/8.974, allocations: 1.226 MB / 3.795 GB, free: 72.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/8.974, allocations: 187.2 kB / 3.795 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-05/8.975, allocations: 3.75 kB / 3.795 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/8.975, allocations: 32.12 kB / 3.795 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.512e-05/8.975, allocations: 24.42 kB / 3.795 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/8.975, allocations: 18.33 kB / 3.795 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002593/8.975, allocations: 225.9 kB / 3.795 GB, free: 72.04 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.3e-07/8.975, allocations: 3.906 kB / 3.795 GB, free: 72.04 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005585/8.981, allocations: 1.182 MB / 3.796 GB, free: 72.03 MB / 0.5417 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 (26): * Single equations (assignments): 20 * 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.007883/8.989, allocations: 1.713 MB / 3.798 GB, free: 71.89 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001079/8.99, allocations: 0.6355 MB / 3.799 GB, free: 71.88 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/8.99, allocations: 2.875 kB / 3.799 GB, free: 71.88 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000423/8.99, allocations: 396.2 kB / 3.799 GB, free: 71.88 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/8.991, allocations: 180.8 kB / 3.799 GB, free: 71.88 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/8.993, allocations: 0.9846 MB / 3.8 GB, free: 71.62 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/8.993, allocations: 0.9419 MB / 3.801 GB, free: 70.91 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008074/8.994, allocations: 0.6514 MB / 3.802 GB, free: 70.91 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.3e-05/8.994, allocations: 37.75 kB / 3.802 GB, free: 70.9 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/8.994, allocations: 0 / 3.802 GB, free: 70.9 MB / 0.5417 GB Notification: Performance of Templates: time 0.03977/9.034, allocations: 30.95 MB / 3.832 GB, free: 69.41 MB / 0.5417 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