Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001469/0.001469, allocations: 189.1 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.666/1.666, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001002/0.001001, allocations: 95.42 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2398/0.2398, allocations: 43.49 MB / 352.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2935/0.5333, allocations: 64.96 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4395/0.9729, allocations: 58.84 MB / 476.7 MB, free: 5.191 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6697/1.643, allocations: 288.2 MB / 0.7469 GB, free: 44.38 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/1.643, allocations: 85.81 kB / 0.747 GB, free: 44.33 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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.5684/2.211, allocations: 117.7 MB / 0.862 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/2.211, allocations: 10.16 kB / 0.862 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006485/2.212, allocations: 82.77 kB / 0.8621 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/2.214, allocations: 0.5299 MB / 0.8626 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/2.214, allocations: 14.47 kB / 0.8626 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/2.214, allocations: 22.94 kB / 0.8626 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009898/2.215, allocations: 484.8 kB / 0.8631 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009849/2.216, allocations: 0.5904 MB / 0.8637 GB, free: 146.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/2.216, allocations: 3.094 kB / 0.8637 GB, free: 146.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.417e-05/2.216, allocations: 3.812 kB / 0.8637 GB, free: 146.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/2.216, allocations: 10.78 kB / 0.8637 GB, free: 146.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/2.22, allocations: 2.982 MB / 0.8666 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003849/2.22, allocations: 193.7 kB / 0.8668 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/2.221, allocations: 132.3 kB / 0.8669 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002873/2.221, allocations: 338.8 kB / 0.8672 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003752/2.221, allocations: 271.5 kB / 0.8675 GB, free: 144 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 5.871e-06/2.221, allocations: 3.562 kB / 0.8675 GB, free: 144 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.003382/2.225, allocations: 0.6708 MB / 0.8681 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.663e-05/2.225, allocations: 286.4 kB / 0.8684 GB, free: 143.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005198/2.225, allocations: 379.5 kB / 0.8688 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/2.225, allocations: 33.36 kB / 0.8688 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/2.226, allocations: 286.3 kB / 0.8691 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/2.226, allocations: 100.4 kB / 0.8692 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.309e-05/2.226, allocations: 3 kB / 0.8692 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000106/2.226, allocations: 356.4 kB / 0.8695 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/2.226, allocations: 130.4 kB / 0.8696 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/2.226, allocations: 356.5 kB / 0.87 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002779/2.229, allocations: 0.527 MB / 0.8705 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/2.229, allocations: 0 / 0.8705 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00343/2.233, allocations: 0.8297 MB / 0.8713 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007188/2.233, allocations: 2.097 MB / 0.8734 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/2.234, allocations: 7.562 kB / 0.8734 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.771e-05/2.234, allocations: 7.312 kB / 0.8734 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/2.235, allocations: 175.6 kB / 0.8735 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008603/2.236, allocations: 0.6793 MB / 0.8742 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000684/2.236, allocations: 64.53 kB / 0.8743 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.034e-05/2.236, allocations: 31.25 kB / 0.8743 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/2.236, allocations: 3.938 kB / 0.8743 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00214/2.239, allocations: 0.6124 MB / 0.8749 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/2.239, allocations: 7.844 kB / 0.8749 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/2.239, allocations: 7.438 kB / 0.8749 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/2.239, allocations: 116.2 kB / 0.875 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/2.239, allocations: 11.78 kB / 0.875 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005804/2.24, allocations: 50.5 kB / 0.8751 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.503e-05/2.24, allocations: 33.64 kB / 0.8751 GB, free: 139.1 MB / 0.4948 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.0002445/2.24, allocations: 145.2 kB / 0.8752 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/2.24, allocations: 54.56 kB / 0.8753 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/2.243, allocations: 0.932 MB / 0.8762 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/2.243, allocations: 4.969 kB / 0.8762 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/2.243, allocations: 0 / 0.8762 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-05/2.243, allocations: 2.297 kB / 0.8762 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/2.244, allocations: 468.8 kB / 0.8767 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/2.244, allocations: 0 / 0.8767 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007916/2.245, allocations: 121 kB / 0.8768 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.856e-05/2.245, allocations: 3.125 kB / 0.8768 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.095e-05/2.245, allocations: 11.78 kB / 0.8768 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005539/2.246, allocations: 0.6211 MB / 0.8774 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/2.246, allocations: 0 / 0.8774 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002291/2.248, allocations: 0.5782 MB / 0.878 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00224/2.25, allocations: 0.9753 MB / 0.8789 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004238/2.251, allocations: 210.2 kB / 0.8791 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002144/2.251, allocations: 4.656 kB / 0.8791 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004601/2.251, allocations: 19.98 kB / 0.8791 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/2.251, allocations: 24.06 kB / 0.8792 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/2.251, allocations: 19.16 kB / 0.8792 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0006173/2.252, allocations: 309.5 kB / 0.8795 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003656/2.256, allocations: 0.5194 MB / 0.88 GB, free: 136.5 MB / 0.4948 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.001602/2.257, allocations: 459.5 kB / 0.8804 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002963/2.26, allocations: 0.7803 MB / 0.8812 GB, free: 136 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/2.26, allocations: 4.281 kB / 0.8812 GB, free: 136 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00123/2.262, allocations: 338.7 kB / 0.8815 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/2.263, allocations: 191.8 kB / 0.8817 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/2.265, allocations: 0.7243 MB / 0.8824 GB, free: 135.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/2.266, allocations: 0.9787 MB / 0.8834 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of SimCode: time 6.01e-07/2.266, allocations: 0 / 0.8834 GB, free: 134.8 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1)