Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") [: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.001129/0.001129, allocations: 205 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009527/0.0009528, allocations: 92.8 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 45.14 MB / 383.3 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.183e-06/7.213e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1282, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8072/0.9355, allocations: 290.5 MB / 0.7875 GB, free: 183.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.9358, allocations: 79.95 kB / 0.7875 GB, free: 183.5 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 0.2352/1.171, allocations: 119.2 MB / 0.904 GB, free: 62.94 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.196e-05/1.171, allocations: 19.98 kB / 0.904 GB, free: 62.92 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002004/1.173, allocations: 0.8636 MB / 0.9048 GB, free: 62.01 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/1.173, allocations: 8.031 kB / 0.9048 GB, free: 62 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005752/1.174, allocations: 83.14 kB / 0.9049 GB, free: 61.92 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/1.175, allocations: 0.5249 MB / 0.9054 GB, free: 61.36 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/1.175, allocations: 16 kB / 0.9054 GB, free: 61.34 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.642e-05/1.175, allocations: 24 kB / 0.9055 GB, free: 61.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007386/1.176, allocations: 489.8 kB / 0.9059 GB, free: 60.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008177/1.177, allocations: 0.579 MB / 0.9065 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/1.177, allocations: 0 / 0.9065 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.408e-05/1.177, allocations: 7.984 kB / 0.9065 GB, free: 60.19 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/1.177, allocations: 12 kB / 0.9065 GB, free: 60.18 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/1.18, allocations: 2.998 MB / 0.9094 GB, free: 57.01 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002801/1.18, allocations: 190.8 kB / 0.9096 GB, free: 56.81 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/1.181, allocations: 133.1 kB / 0.9097 GB, free: 56.68 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002288/1.181, allocations: 340.4 kB / 0.9101 GB, free: 56.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000294/1.181, allocations: 267.7 kB / 0.9103 GB, free: 55.97 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.525e-06/1.181, allocations: 0 / 0.9103 GB, free: 55.97 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.003208/1.184, allocations: 0.6596 MB / 0.911 GB, free: 55.31 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.038e-05/1.184, allocations: 298.9 kB / 0.9113 GB, free: 54.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004781/1.185, allocations: 381.1 kB / 0.9116 GB, free: 54.57 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.199e-05/1.185, allocations: 29.7 kB / 0.9116 GB, free: 54.54 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/1.185, allocations: 286.9 kB / 0.9119 GB, free: 54.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.129e-05/1.185, allocations: 90.69 kB / 0.912 GB, free: 54.16 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/1.185, allocations: 0 / 0.912 GB, free: 54.16 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001126/1.186, allocations: 358.8 kB / 0.9123 GB, free: 53.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/1.186, allocations: 136.9 kB / 0.9125 GB, free: 53.66 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/1.186, allocations: 355.4 kB / 0.9128 GB, free: 53.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002815/1.189, allocations: 0.5265 MB / 0.9133 GB, free: 52.69 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.639e-06/1.189, allocations: 4 kB / 0.9133 GB, free: 52.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.003315/1.192, allocations: 0.8324 MB / 0.9141 GB, free: 51.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004177/1.193, allocations: 2.099 MB / 0.9162 GB, free: 49.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/1.193, allocations: 4 kB / 0.9162 GB, free: 49.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.256e-05/1.193, allocations: 15.94 kB / 0.9162 GB, free: 49.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/1.194, allocations: 175.7 kB / 0.9164 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007969/1.195, allocations: 0.6796 MB / 0.917 GB, free: 48.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006153/1.195, allocations: 55.5 kB / 0.9171 GB, free: 48.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/1.196, allocations: 31.98 kB / 0.9171 GB, free: 48.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/1.196, allocations: 4 kB / 0.9171 GB, free: 48.6 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002126/1.198, allocations: 0.6087 MB / 0.9177 GB, free: 47.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/1.198, allocations: 7.906 kB / 0.9177 GB, free: 47.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/1.198, allocations: 8 kB / 0.9177 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/1.198, allocations: 119.8 kB / 0.9179 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/1.198, allocations: 8 kB / 0.9179 GB, free: 47.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000507/1.199, allocations: 44.11 kB / 0.9179 GB, free: 47.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/1.199, allocations: 23.98 kB / 0.9179 GB, free: 47.78 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001949/1.199, allocations: 154.5 kB / 0.9181 GB, free: 47.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/1.199, allocations: 55.34 kB / 0.9181 GB, free: 47.56 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002184/1.201, allocations: 0.9271 MB / 0.919 GB, free: 46.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/1.201, allocations: 4 kB / 0.919 GB, free: 46.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.201, allocations: 3.906 kB / 0.919 GB, free: 46.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/1.201, allocations: 7.984 kB / 0.9191 GB, free: 46.61 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006149/1.202, allocations: 462 kB / 0.9195 GB, free: 46.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/1.202, allocations: 4 kB / 0.9195 GB, free: 46.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000586/1.202, allocations: 119.8 kB / 0.9196 GB, free: 46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/1.202, allocations: 0 / 0.9196 GB, free: 46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/1.203, allocations: 7.984 kB / 0.9196 GB, free: 45.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003716/1.203, allocations: 0.625 MB / 0.9202 GB, free: 45.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/1.203, allocations: 0 / 0.9202 GB, free: 45.34 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001395/1.204, allocations: 0.581 MB / 0.9208 GB, free: 44.74 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002898/1.205, allocations: 208.2 kB / 0.921 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/1.205, allocations: 0 / 0.921 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/1.205, allocations: 19.97 kB / 0.921 GB, free: 44.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.536e-05/1.205, allocations: 28.3 kB / 0.921 GB, free: 44.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.883e-05/1.205, allocations: 23.92 kB / 0.9211 GB, free: 44.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003018/1.206, allocations: 306.9 kB / 0.9214 GB, free: 44.15 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00135/1.207, allocations: 451.1 kB / 0.9218 GB, free: 43.71 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001009/1.208, allocations: 461.7 kB / 0.9222 GB, free: 43.26 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002057/1.21, allocations: 0.7844 MB / 0.923 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.21, allocations: 0 / 0.923 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008705/1.211, allocations: 340 kB / 0.9233 GB, free: 42.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009703/1.212, allocations: 205.3 kB / 0.9235 GB, free: 41.93 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/1.213, allocations: 0.7124 MB / 0.9242 GB, free: 41.19 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004731/1.214, allocations: 0.9808 MB / 0.9252 GB, free: 40.18 MB / 0.5261 GB Notification: Performance of SimCode: time 1.252e-06/1.214, allocations: 0 / 0.9252 GB, free: 40.18 MB / 0.5261 GB Notification: Performance of Templates: time 0.02394/1.238, allocations: 14.8 MB / 0.9396 GB, free: 25.46 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches