Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") [: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.001114/0.001114, allocations: 195.9 kB / 8.533 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, 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.001273/0.001273, allocations: 91.2 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2425/0.2425, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.699e-06/9.849e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1442, allocations: 63.24 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.364/6.509, allocations: 2.767 GB / 3.271 GB, free: 134 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/6.509, allocations: 87 kB / 3.271 GB, free: 133.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 .... [/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 2.163/8.672, allocations: 0.6688 GB / 3.94 GB, free: 50.61 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.936e-05/8.672, allocations: 24.72 kB / 3.94 GB, free: 50.61 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.01018/8.683, allocations: 2.22 MB / 3.942 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/8.683, allocations: 10.72 kB / 3.942 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005896/8.689, allocations: 0.7077 MB / 3.943 GB, free: 49.22 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002116/8.691, allocations: 0.6666 MB / 3.943 GB, free: 48.79 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/8.691, allocations: 35.5 kB / 3.943 GB, free: 48.79 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002422/8.691, allocations: 44.75 kB / 3.943 GB, free: 48.79 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001919/8.693, allocations: 0.7463 MB / 3.944 GB, free: 48.52 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/8.695, allocations: 0.9256 MB / 3.945 GB, free: 47.99 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/8.695, allocations: 2.125 kB / 3.945 GB, free: 47.99 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/8.695, allocations: 2.938 kB / 3.945 GB, free: 47.99 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-05/8.695, allocations: 23.77 kB / 3.945 GB, free: 47.99 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4405/9.136, allocations: 116.7 MB / 4.059 GB, free: 113.2 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/9.137, allocations: 0.5206 MB / 4.06 GB, free: 113.1 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003385/9.137, allocations: 218.1 kB / 4.06 GB, free: 113.1 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06888/9.206, allocations: 37.07 MB / 4.096 GB, free: 89.56 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/9.206, allocations: 45.69 kB / 4.096 GB, free: 89.52 MB / 0.573 GB Notification: Performance of pre-optimization done (n=46): time 3.166e-06/9.206, allocations: 0 / 4.096 GB, free: 89.52 MB / 0.573 GB Notification: Performance of matching and sorting (n=46): time 0.004731/9.211, allocations: 1.136 MB / 4.097 GB, free: 89.47 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/9.211, allocations: 194 kB / 4.097 GB, free: 89.25 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009638/9.212, allocations: 480.9 kB / 4.098 GB, free: 89.13 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001183/9.212, allocations: 25.7 kB / 4.098 GB, free: 89.1 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003068/9.213, allocations: 376.6 kB / 4.098 GB, free: 88.91 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/9.213, allocations: 156.8 kB / 4.098 GB, free: 88.84 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/9.213, allocations: 0 / 4.098 GB, free: 88.84 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001424/9.213, allocations: 372 kB / 4.099 GB, free: 88.52 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/9.213, allocations: 235.4 kB / 4.099 GB, free: 88.52 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005412/9.214, allocations: 489.5 kB / 4.099 GB, free: 88.21 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002515/9.216, allocations: 0.5457 MB / 4.1 GB, free: 88.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/9.217, allocations: 3.906 kB / 4.1 GB, free: 88.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.005107/9.222, allocations: 1.531 MB / 4.101 GB, free: 88.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009392/9.223, allocations: 2.96 MB / 4.104 GB, free: 85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/9.223, allocations: 10.31 kB / 4.104 GB, free: 85 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004475/9.223, allocations: 96.86 kB / 4.104 GB, free: 84.98 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008448/9.224, allocations: 206.3 kB / 4.105 GB, free: 84.97 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/9.226, allocations: 1.365 MB / 4.106 GB, free: 83.93 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/9.227, allocations: 150.8 kB / 4.106 GB, free: 83.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/9.228, allocations: 47.08 kB / 4.106 GB, free: 83.9 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/9.228, allocations: 3.594 kB / 4.106 GB, free: 83.9 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002481/9.23, allocations: 0.7954 MB / 4.107 GB, free: 83.89 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/9.23, allocations: 13.39 kB / 4.107 GB, free: 83.89 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/9.23, allocations: 12.66 kB / 4.107 GB, free: 83.89 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008378/9.231, allocations: 240 kB / 4.107 GB, free: 83.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/9.231, allocations: 17.59 kB / 4.107 GB, free: 83.88 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009469/9.232, allocations: 112.7 kB / 4.107 GB, free: 83.86 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.552e-05/9.232, allocations: 43.09 kB / 4.107 GB, free: 83.86 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002408/9.232, allocations: 133.2 kB / 4.108 GB, free: 83.75 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/9.234, allocations: 401.2 kB / 4.108 GB, free: 83.71 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004354/9.238, allocations: 2.943 MB / 4.111 GB, free: 83.48 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.718e-05/9.238, allocations: 29.11 kB / 4.111 GB, free: 83.48 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/9.238, allocations: 3 kB / 4.111 GB, free: 83.48 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/9.238, allocations: 3.328 kB / 4.111 GB, free: 83.48 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004929/9.243, allocations: 3.858 MB / 4.115 GB, free: 82.92 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/9.243, allocations: 0 / 4.115 GB, free: 82.92 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004292/9.243, allocations: 102.1 kB / 4.115 GB, free: 82.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006826/9.244, allocations: 0.5992 MB / 4.115 GB, free: 82.88 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/9.244, allocations: 20.56 kB / 4.115 GB, free: 82.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/9.246, allocations: 1.669 MB / 4.117 GB, free: 81.83 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/9.246, allocations: 0 / 4.117 GB, free: 81.83 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003638/9.249, allocations: 2.451 MB / 4.119 GB, free: 81.36 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000556/9.25, allocations: 315.8 kB / 4.12 GB, free: 81.21 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/9.25, allocations: 3.5 kB / 4.12 GB, free: 81.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007345/9.251, allocations: 64.56 kB / 4.12 GB, free: 81.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/9.251, allocations: 58.59 kB / 4.12 GB, free: 81.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.828e-05/9.251, allocations: 27.64 kB / 4.12 GB, free: 81.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0005557/9.252, allocations: 452.4 kB / 4.12 GB, free: 81.09 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005978/9.258, allocations: 1.327 MB / 4.121 GB, free: 81.07 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.009371/9.267, allocations: 2.008 MB / 4.123 GB, free: 80.78 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002807/9.27, allocations: 1.567 MB / 4.125 GB, free: 80.75 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/9.27, allocations: 0 / 4.125 GB, free: 80.75 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001263/9.271, allocations: 1.058 MB / 4.126 GB, free: 80.75 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/9.273, allocations: 285.3 kB / 4.126 GB, free: 80.72 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004807/9.278, allocations: 1.876 MB / 4.128 GB, free: 80.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/9.28, allocations: 1.227 MB / 4.129 GB, free: 79.57 MB / 0.573 GB Notification: Performance of SimCode: time 2.404e-06/9.28, allocations: 0 / 4.129 GB, free: 79.57 MB / 0.573 GB Notification: Performance of Templates: time 0.06548/9.345, allocations: 44.27 MB / 4.173 GB, free: 76.77 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestDensity/TestDensity.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches