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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) [: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.001144/0.001144, allocations: 196.7 kB / 8.54 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.219/1.219, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008919/0.000892, allocations: 87.48 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1712/0.1712, allocations: 45.15 MB / 383.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2239/0.3952, allocations: 69.38 MB / 452.7 MB, free: 76.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09745/0.4927, allocations: 63.24 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6266/1.119, allocations: 290.5 MB / 0.7876 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/1.12, allocations: 78.84 kB / 0.7876 GB, free: 167.8 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: 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.221/1.341, allocations: 120.1 MB / 0.9049 GB, free: 54.05 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/1.341, allocations: 11.94 kB / 0.905 GB, free: 54.04 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00055/1.341, allocations: 83.14 kB / 0.905 GB, free: 53.95 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/1.342, allocations: 0.5249 MB / 0.9055 GB, free: 53.39 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/1.342, allocations: 16 kB / 0.9056 GB, free: 53.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.283e-05/1.342, allocations: 27.94 kB / 0.9056 GB, free: 53.35 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006968/1.343, allocations: 485.8 kB / 0.906 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007708/1.344, allocations: 0.5829 MB / 0.9066 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/1.344, allocations: 0 / 0.9066 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.169e-05/1.344, allocations: 4 kB / 0.9066 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/1.344, allocations: 16 kB / 0.9066 GB, free: 52.21 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002928/1.347, allocations: 2.994 MB / 0.9096 GB, free: 49.04 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/1.347, allocations: 190.8 kB / 0.9097 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/1.347, allocations: 129.1 kB / 0.9099 GB, free: 48.71 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002139/1.348, allocations: 340.4 kB / 0.9102 GB, free: 48.31 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000275/1.348, allocations: 263.8 kB / 0.9104 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 1.723e-06/1.348, allocations: 0 / 0.9104 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.003001/1.351, allocations: 0.6673 MB / 0.9111 GB, free: 47.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/1.351, allocations: 294.9 kB / 0.9114 GB, free: 46.99 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/1.351, allocations: 377.1 kB / 0.9117 GB, free: 46.61 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/1.351, allocations: 29.7 kB / 0.9118 GB, free: 46.58 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/1.352, allocations: 290.9 kB / 0.912 GB, free: 46.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.272e-05/1.352, allocations: 94.69 kB / 0.9121 GB, free: 46.19 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/1.352, allocations: 0 / 0.9121 GB, free: 46.19 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.46e-05/1.352, allocations: 362.8 kB / 0.9125 GB, free: 45.83 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/1.352, allocations: 133 kB / 0.9126 GB, free: 45.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/1.352, allocations: 351.4 kB / 0.9129 GB, free: 45.25 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/1.355, allocations: 0.5187 MB / 0.9134 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.355, allocations: 4 kB / 0.9134 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.003143/1.358, allocations: 0.8437 MB / 0.9143 GB, free: 43.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003209/1.358, allocations: 2.088 MB / 0.9163 GB, free: 41.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.358, allocations: 4 kB / 0.9163 GB, free: 41.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/1.358, allocations: 15.98 kB / 0.9163 GB, free: 41.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/1.36, allocations: 175.7 kB / 0.9165 GB, free: 41.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007522/1.36, allocations: 0.6756 MB / 0.9172 GB, free: 40.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000509/1.361, allocations: 59.55 kB / 0.9172 GB, free: 40.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.685e-05/1.361, allocations: 31.98 kB / 0.9172 GB, free: 40.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.934e-06/1.361, allocations: 7.125 kB / 0.9173 GB, free: 40.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002059/1.363, allocations: 0.6044 MB / 0.9178 GB, free: 40.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/1.363, allocations: 8.625 kB / 0.9179 GB, free: 40.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.276e-06/1.363, allocations: 8 kB / 0.9179 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/1.363, allocations: 119.8 kB / 0.918 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/1.363, allocations: 15.92 kB / 0.918 GB, free: 39.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/1.364, allocations: 39.67 kB / 0.918 GB, free: 39.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/1.364, allocations: 27.98 kB / 0.9181 GB, free: 39.82 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.0001531/1.364, allocations: 158.5 kB / 0.9182 GB, free: 39.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.277e-05/1.364, allocations: 63.33 kB / 0.9183 GB, free: 39.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/1.366, allocations: 0.9155 MB / 0.9192 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/1.366, allocations: 4 kB / 0.9192 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.366, allocations: 3.906 kB / 0.9192 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/1.366, allocations: 4 kB / 0.9192 GB, free: 38.65 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004671/1.367, allocations: 466 kB / 0.9196 GB, free: 38.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.367, allocations: 3.984 kB / 0.9196 GB, free: 38.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/1.367, allocations: 123.8 kB / 0.9197 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/1.367, allocations: 0 / 0.9197 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/1.367, allocations: 11.98 kB / 0.9197 GB, free: 38.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003481/1.368, allocations: 0.6249 MB / 0.9204 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/1.368, allocations: 0 / 0.9204 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001354/1.369, allocations: 0.5771 MB / 0.9209 GB, free: 36.78 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001395/1.37, allocations: 0.9798 MB / 0.9219 GB, free: 35.78 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/1.371, allocations: 204.2 kB / 0.9221 GB, free: 35.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/1.371, allocations: 7.984 kB / 0.9221 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/1.371, allocations: 19.98 kB / 0.9221 GB, free: 35.53 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.997e-05/1.371, allocations: 28.2 kB / 0.9221 GB, free: 35.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.675e-05/1.371, allocations: 19.98 kB / 0.9221 GB, free: 35.48 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002594/1.372, allocations: 302.9 kB / 0.9224 GB, free: 35.19 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0024/1.374, allocations: 0.5225 MB / 0.9229 GB, free: 34.67 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.000758/1.375, allocations: 470.9 kB / 0.9234 GB, free: 34.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001841/1.377, allocations: 0.7756 MB / 0.9242 GB, free: 33.41 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.377, allocations: 2.125 kB / 0.9242 GB, free: 33.41 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008392/1.377, allocations: 341.9 kB / 0.9245 GB, free: 33.07 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008794/1.378, allocations: 185.9 kB / 0.9247 GB, free: 32.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/1.38, allocations: 0.7162 MB / 0.9254 GB, free: 32.15 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003974/1.38, allocations: 0.9808 MB / 0.9263 GB, free: 31.15 MB / 0.5261 GB Notification: Performance of SimCode: time 4.31e-07/1.38, allocations: 0 / 0.9263 GB, free: 31.15 MB / 0.5261 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1)