Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.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) 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(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization",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.001052/0.001052, allocations: 175.4 kB / 8.473 MB, free: 1.879 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.102/1.102, allocations: 205.2 MB / 214.1 MB, free: 13.86 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.0008769/0.0008769, allocations: 87.39 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1024/0.1033, allocations: 52.98 MB / 315.1 MB, free: 8.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.3027, allocations: 47.55 MB / 362.6 MB, free: 45.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.177/4.48, allocations: 2.808 GB / 3.162 GB, free: 117.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001574/4.48, allocations: 77.97 kB / 3.162 GB, free: 117.6 MB / 426.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 .... Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 2.161/6.641, allocations: 0.7471 GB / 3.909 GB, free: 25.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/6.641, allocations: 13.75 kB / 3.909 GB, free: 25.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005084/6.646, allocations: 0.6253 MB / 3.909 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002618/6.648, allocations: 1.068 MB / 3.911 GB, free: 24.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.904e-05/6.648, allocations: 48.38 kB / 3.911 GB, free: 24.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003057/6.649, allocations: 61.53 kB / 3.911 GB, free: 24.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00297/6.652, allocations: 1.75 MB / 3.912 GB, free: 24.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00272/6.654, allocations: 1.565 MB / 3.914 GB, free: 24.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/6.655, allocations: 15.91 kB / 3.914 GB, free: 24.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001641/6.655, allocations: 3.688 kB / 3.914 GB, free: 24.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-05/6.655, allocations: 90.69 kB / 3.914 GB, free: 24.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5016/7.156, allocations: 167.4 MB / 4.077 GB, free: 38.68 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/7.159, allocations: 1.114 MB / 4.078 GB, free: 38.63 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000974/7.16, allocations: 0.5759 MB / 4.079 GB, free: 38.62 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03312/7.193, allocations: 16.91 MB / 4.096 GB, free: 27.53 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/7.193, allocations: 47.66 kB / 4.096 GB, free: 27.48 MB / 474.7 MB Notification: Performance of pre-optimization done (n=91): time 6.482e-06/7.193, allocations: 1.031 kB / 4.096 GB, free: 27.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=91): time 0.01625/7.21, allocations: 3.052 MB / 4.099 GB, free: 27.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/7.21, allocations: 216.8 kB / 4.099 GB, free: 27.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/7.211, allocations: 0.7727 MB / 4.1 GB, free: 26.99 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003541/7.212, allocations: 25.7 kB / 4.1 GB, free: 26.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/7.212, allocations: 0.4973 MB / 4.1 GB, free: 26.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006368/7.213, allocations: 310.2 kB / 4.1 GB, free: 26.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/7.213, allocations: 4 kB / 4.1 GB, free: 26.55 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/7.213, allocations: 352.1 kB / 4.101 GB, free: 26.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/7.214, allocations: 0.6012 MB / 4.101 GB, free: 26.25 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/7.215, allocations: 0.953 MB / 4.102 GB, free: 25.85 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006118/7.222, allocations: 1.286 MB / 4.103 GB, free: 25.81 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.182e-05/7.222, allocations: 3.594 kB / 4.103 GB, free: 25.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01078/7.232, allocations: 3.051 MB / 4.106 GB, free: 25.68 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007207/7.233, allocations: 3.747 MB / 4.11 GB, free: 21.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/7.233, allocations: 10.38 kB / 4.11 GB, free: 21.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006258/7.239, allocations: 1.131 MB / 4.111 GB, free: 21.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/7.241, allocations: 289.5 kB / 4.112 GB, free: 21.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005229/7.246, allocations: 2.051 MB / 4.114 GB, free: 21.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/7.248, allocations: 263.3 kB / 4.114 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002652/7.248, allocations: 70.81 kB / 4.114 GB, free: 21.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/7.248, allocations: 8.875 kB / 4.114 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006759/7.255, allocations: 1.949 MB / 4.116 GB, free: 21.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/7.255, allocations: 11.22 kB / 4.116 GB, free: 21.03 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008323/7.256, allocations: 199.4 kB / 4.116 GB, free: 21.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/7.258, allocations: 356.2 kB / 4.116 GB, free: 21.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/7.259, allocations: 0.8377 MB / 4.117 GB, free: 20.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/7.261, allocations: 202.3 kB / 4.117 GB, free: 20.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/7.261, allocations: 66.5 kB / 4.117 GB, free: 20.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,pump.heatTransfer.states[1].phase,source.medium.phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 128 * 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 {6 24} Notification: Performance of prepare postOptimizeDAE: time 0.0004471/7.261, allocations: 151.9 kB / 4.117 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001589/7.263, allocations: 0.4918 MB / 4.118 GB, free: 20.28 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00968/7.272, allocations: 4.358 MB / 4.122 GB, free: 19.97 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.439e-05/7.273, allocations: 29.39 kB / 4.122 GB, free: 19.97 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/7.273, allocations: 1.031 kB / 4.122 GB, free: 19.97 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/7.273, allocations: 5.297 kB / 4.122 GB, free: 19.97 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/7.287, allocations: 6.061 MB / 4.128 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/7.287, allocations: 2.656 kB / 4.128 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006272/7.288, allocations: 117.9 kB / 4.128 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005089/7.293, allocations: 2.261 MB / 4.131 GB, free: 19.32 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002483/7.293, allocations: 21.25 kB / 4.131 GB, free: 19.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005683/7.299, allocations: 2.81 MB / 4.133 GB, free: 18.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/7.299, allocations: 3.75 kB / 4.133 GB, free: 18.73 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00955/7.308, allocations: 3.647 MB / 4.137 GB, free: 18.05 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009284/7.318, allocations: 4.157 MB / 4.141 GB, free: 17.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/7.319, allocations: 0.5094 MB / 4.141 GB, free: 16.83 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006047/7.32, allocations: 6.703 kB / 4.141 GB, free: 16.83 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/7.321, allocations: 90.92 kB / 4.141 GB, free: 16.82 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/7.321, allocations: 75.86 kB / 4.142 GB, free: 16.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/7.321, allocations: 41.11 kB / 4.142 GB, free: 16.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001376/7.323, allocations: 0.8677 MB / 4.142 GB, free: 16.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01064/7.333, allocations: 2.316 MB / 4.145 GB, free: 16.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse20.phase,$cse20.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01059/7.344, allocations: 2.407 MB / 4.147 GB, free: 16.19 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00625/7.35, allocations: 2.797 MB / 4.15 GB, free: 16.15 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/7.35, allocations: 1.125 kB / 4.15 GB, free: 16.15 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002196/7.353, allocations: 1.366 MB / 4.151 GB, free: 16.12 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002939/7.356, allocations: 472.8 kB / 4.152 GB, free: 16.09 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006058/7.362, allocations: 2.73 MB / 4.154 GB, free: 14.85 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/7.363, allocations: 1.496 MB / 4.156 GB, free: 13.62 MB / 474.7 MB Notification: Performance of SimCode: time 6.81e-07/7.363, allocations: 0 / 4.156 GB, free: 13.62 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)