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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.00115, allocations: 203.1 kB / 8.543 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009433/0.0009432, allocations: 98.5 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.235/0.235, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.548e-06/9.578e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1391, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.556/6.695, allocations: 2.766 GB / 3.27 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/6.695, allocations: 82.45 kB / 3.27 GB, free: 146.3 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: time 1.325/8.02, allocations: 402.4 MB / 3.663 GB, free: 66.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.108e-05/8.02, allocations: 10.78 kB / 3.663 GB, free: 66.1 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.005492/8.026, allocations: 1.554 MB / 3.665 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/8.026, allocations: 11.38 kB / 3.665 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00247/8.028, allocations: 330.3 kB / 3.665 GB, free: 65.43 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008611/8.029, allocations: 456.8 kB / 3.665 GB, free: 65.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/8.029, allocations: 15.53 kB / 3.665 GB, free: 65.21 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.33e-05/8.029, allocations: 23.53 kB / 3.665 GB, free: 65.21 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005774/8.03, allocations: 367.6 kB / 3.666 GB, free: 65.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006086/8.031, allocations: 474.1 kB / 3.666 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/8.031, allocations: 1.781 kB / 3.666 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.426e-05/8.031, allocations: 3.938 kB / 3.666 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/8.031, allocations: 13.61 kB / 3.666 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.101/8.132, allocations: 58.46 MB / 3.723 GB, free: 27.23 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003651/8.132, allocations: 261.3 kB / 3.723 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/8.132, allocations: 125.6 kB / 3.724 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1217/8.254, allocations: 63.57 MB / 3.786 GB, free: 32.6 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/8.254, allocations: 39.97 kB / 3.786 GB, free: 32.56 MB / 0.573 GB Notification: Performance of pre-optimization done (n=24): time 2.194e-06/8.254, allocations: 1.188 kB / 3.786 GB, free: 32.56 MB / 0.573 GB Notification: Performance of matching and sorting (n=24): time 0.002419/8.256, allocations: 0.6248 MB / 3.786 GB, free: 32.49 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/8.257, allocations: 105.1 kB / 3.786 GB, free: 32.37 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000422/8.257, allocations: 302.9 kB / 3.787 GB, free: 32.26 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/8.257, allocations: 29.7 kB / 3.787 GB, free: 32.22 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/8.257, allocations: 232.5 kB / 3.787 GB, free: 32.09 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 6.126e-05/8.257, allocations: 88.77 kB / 3.787 GB, free: 32.04 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/8.257, allocations: 0 / 3.787 GB, free: 32.04 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001194/8.257, allocations: 344.6 kB / 3.787 GB, free: 31.73 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/8.258, allocations: 129 kB / 3.788 GB, free: 31.73 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/8.258, allocations: 243 kB / 3.788 GB, free: 31.59 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/8.259, allocations: 300.3 kB / 3.788 GB, free: 31.58 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/8.259, allocations: 0.8438 kB / 3.788 GB, free: 31.58 MB / 0.573 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002698/8.262, allocations: 0.8207 MB / 3.789 GB, free: 31.51 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004784/8.262, allocations: 1.316 MB / 3.79 GB, free: 30.14 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/8.262, allocations: 5.406 kB / 3.79 GB, free: 30.14 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000222/8.263, allocations: 60.8 kB / 3.79 GB, free: 30.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003573/8.263, allocations: 91.95 kB / 3.79 GB, free: 30.12 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/8.264, allocations: 0.721 MB / 3.791 GB, free: 29.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005133/8.264, allocations: 79.8 kB / 3.791 GB, free: 29.59 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.033e-05/8.265, allocations: 23.53 kB / 3.791 GB, free: 29.59 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.104e-06/8.265, allocations: 6.438 kB / 3.791 GB, free: 29.59 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0011/8.266, allocations: 422.3 kB / 3.791 GB, free: 29.58 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/8.266, allocations: 0 / 3.791 GB, free: 29.58 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.872e-06/8.266, allocations: 10.84 kB / 3.791 GB, free: 29.58 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003972/8.266, allocations: 114.6 kB / 3.792 GB, free: 29.58 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/8.266, allocations: 9.219 kB / 3.792 GB, free: 29.58 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/8.266, allocations: 58.44 kB / 3.792 GB, free: 29.57 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/8.266, allocations: 21.06 kB / 3.792 GB, free: 29.57 MB / 0.573 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.0001467/8.267, allocations: 124.9 kB / 3.792 GB, free: 29.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005678/8.267, allocations: 207 kB / 3.792 GB, free: 29.44 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/8.269, allocations: 1.674 MB / 3.794 GB, free: 29.3 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.692e-05/8.269, allocations: 20.25 kB / 3.794 GB, free: 29.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/8.269, allocations: 0 / 3.794 GB, free: 29.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/8.269, allocations: 0 / 3.794 GB, free: 29.3 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/8.272, allocations: 2.263 MB / 3.796 GB, free: 28.93 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/8.272, allocations: 9.031 kB / 3.796 GB, free: 28.93 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/8.272, allocations: 48.5 kB / 3.796 GB, free: 28.93 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006665/8.273, allocations: 0.5027 MB / 3.796 GB, free: 28.89 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/8.273, allocations: 14.62 kB / 3.796 GB, free: 28.89 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/8.274, allocations: 1.083 MB / 3.797 GB, free: 28.35 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/8.274, allocations: 0 / 3.797 GB, free: 28.35 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002061/8.276, allocations: 1.454 MB / 3.799 GB, free: 28.09 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002472/8.276, allocations: 193 kB / 3.799 GB, free: 27.96 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.306e-05/8.276, allocations: 1.219 kB / 3.799 GB, free: 27.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003295/8.276, allocations: 42.7 kB / 3.799 GB, free: 27.96 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.242e-05/8.276, allocations: 31.14 kB / 3.799 GB, free: 27.95 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/8.276, allocations: 9.281 kB / 3.799 GB, free: 27.95 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0002679/8.277, allocations: 236.9 kB / 3.799 GB, free: 27.86 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005451/8.282, allocations: 1.219 MB / 3.801 GB, free: 27.66 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$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): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.008476/8.291, allocations: 1.797 MB / 3.802 GB, free: 26.67 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001558/8.292, allocations: 0.8961 MB / 3.803 GB, free: 26.18 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/8.292, allocations: 0 / 3.803 GB, free: 26.18 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005703/8.293, allocations: 0.6223 MB / 3.804 GB, free: 25.91 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/8.294, allocations: 155.2 kB / 3.804 GB, free: 25.81 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/8.296, allocations: 1.057 MB / 3.805 GB, free: 25.07 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005411/8.296, allocations: 0.9728 MB / 3.806 GB, free: 24.17 MB / 0.573 GB Notification: Performance of SimCode: time 4.51e-07/8.296, allocations: 0 / 3.806 GB, free: 24.17 MB / 0.573 GB Notification: Performance of Templates: time 0.04988/8.346, allocations: 36.8 MB / 3.842 GB, free: 144 kB / 0.573 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