Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization") [: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.1+maint.om/package.mo): time 0.004383/0.004383, allocations: 181.3 kB / 7.458 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.53/1.53, allocations: 170.6 MB / 178.4 MB, free: 15.38 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001877/0.001877, allocations: 101 kB / 217.7 MB, free: 8.152 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.012e-05/1.015e-05, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.127, allocations: 38.76 MB / 300.5 MB, free: 3.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.179/7.306, allocations: 2.529 GB / 2.823 GB, free: 81.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/7.307, allocations: 76.33 kB / 2.823 GB, free: 81.51 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329: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 3.172/10.48, allocations: 0.7206 GB / 3.543 GB, free: 19.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002789/10.48, allocations: 44.05 kB / 3.543 GB, free: 19.97 MB / 378.7 MB 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 0.01824/10.5, allocations: 2.816 MB / 3.546 GB, free: 18.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/10.5, allocations: 7.656 kB / 3.546 GB, free: 18.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006199/10.5, allocations: 0.6078 MB / 3.547 GB, free: 18.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/10.51, allocations: 1.091 MB / 3.548 GB, free: 18.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/10.51, allocations: 45.19 kB / 3.548 GB, free: 18.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006458/10.51, allocations: 61.03 kB / 3.548 GB, free: 18.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005143/10.51, allocations: 1.741 MB / 3.55 GB, free: 18.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00452/10.52, allocations: 1.555 MB / 3.551 GB, free: 17.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.914e-05/10.52, allocations: 8 kB / 3.551 GB, free: 17.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003262/10.52, allocations: 7.031 kB / 3.551 GB, free: 17.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/10.52, allocations: 86.23 kB / 3.551 GB, free: 17.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6379/11.16, allocations: 137.6 MB / 3.686 GB, free: 73.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002777/11.16, allocations: 1.037 MB / 3.687 GB, free: 73.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/11.16, allocations: 0.5414 MB / 3.687 GB, free: 73.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03766/11.2, allocations: 17.41 MB / 3.704 GB, free: 62.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.585e-05/11.2, allocations: 46.72 kB / 3.704 GB, free: 62.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=91): time 3.657e-06/11.2, allocations: 0 / 3.704 GB, free: 62.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.0801/11.28, allocations: 10.66 MB / 3.715 GB, free: 61.99 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/11.28, allocations: 221.6 kB / 3.715 GB, free: 61.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/11.28, allocations: 0.7672 MB / 3.716 GB, free: 61.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006352/11.28, allocations: 25.7 kB / 3.716 GB, free: 61.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006228/11.28, allocations: 0.5104 MB / 3.716 GB, free: 61.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/11.28, allocations: 437.7 kB / 3.717 GB, free: 61.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/11.28, allocations: 0 / 3.717 GB, free: 61.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000232/11.28, allocations: 373.5 kB / 3.717 GB, free: 60.76 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/11.29, allocations: 1.336 MB / 3.718 GB, free: 60.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003192/11.29, allocations: 1.778 MB / 3.72 GB, free: 60.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008399/11.3, allocations: 1.981 MB / 3.722 GB, free: 60.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.409e-05/11.3, allocations: 3.906 kB / 3.722 GB, free: 60.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.01846/11.32, allocations: 5.481 MB / 3.727 GB, free: 60.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001823/11.32, allocations: 4.778 MB / 3.732 GB, free: 55.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.685e-05/11.32, allocations: 11.47 kB / 3.732 GB, free: 55.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01429/11.33, allocations: 4.103 MB / 3.736 GB, free: 54.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/11.33, allocations: 331.9 kB / 3.736 GB, free: 54.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01696/11.35, allocations: 6.304 MB / 3.742 GB, free: 53.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00503/11.36, allocations: 280.1 kB / 3.743 GB, free: 53.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008184/11.36, allocations: 126.2 kB / 3.743 GB, free: 53.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/11.36, allocations: 7.125 kB / 3.743 GB, free: 53.78 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01373/11.37, allocations: 3.146 MB / 3.746 GB, free: 53.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.383e-05/11.37, allocations: 15.34 kB / 3.746 GB, free: 53.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002656/11.37, allocations: 0.594 MB / 3.746 GB, free: 53.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/11.38, allocations: 461.3 kB / 3.747 GB, free: 53.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003938/11.38, allocations: 1.928 MB / 3.749 GB, free: 52.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003453/11.38, allocations: 189.2 kB / 3.749 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000729/11.39, allocations: 101.3 kB / 3.749 GB, free: 52.57 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.orifice.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate in design flow direction" type: Real $DER.pipe1.flowModel.states[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy" type: Real [2] $DER.pipe1.flowModel.mus_act[1]:DUMMY_DER(fixed = false ) "Actual viscosity per segment" type: Real [1] $DER.pump.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate (total)" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (154): * Single equations (assignments): 152 * 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 {5 21,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.001681/11.39, allocations: 164 kB / 3.749 GB, free: 52.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002281/11.39, allocations: 0.4995 MB / 3.75 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01815/11.41, allocations: 7.325 MB / 3.757 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.581e-05/11.41, allocations: 33.67 kB / 3.757 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/11.41, allocations: 0 / 3.757 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.104e-05/11.41, allocations: 9.672 kB / 3.757 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02171/11.43, allocations: 9.723 MB / 3.766 GB, free: 51.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/11.43, allocations: 8.891 kB / 3.766 GB, free: 51.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000844/11.43, allocations: 148.2 kB / 3.767 GB, free: 51.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01217/11.44, allocations: 5.049 MB / 3.771 GB, free: 51.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006279/11.44, allocations: 50.7 kB / 3.771 GB, free: 51.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01665/11.46, allocations: 6.994 MB / 3.778 GB, free: 50.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-05/11.46, allocations: 10.75 kB / 3.778 GB, free: 50.02 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01587/11.48, allocations: 6.178 MB / 3.784 GB, free: 49.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002192/11.48, allocations: 0.6582 MB / 3.785 GB, free: 49.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000949/11.48, allocations: 10.91 kB / 3.785 GB, free: 49.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003777/11.48, allocations: 193.6 kB / 3.785 GB, free: 49.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/11.48, allocations: 95.89 kB / 3.785 GB, free: 49.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002971/11.48, allocations: 77.12 kB / 3.785 GB, free: 49.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00166/11.49, allocations: 0.8118 MB / 3.786 GB, free: 48.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01271/11.5, allocations: 2.077 MB / 3.788 GB, free: 48.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse21.phase,$cse21.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 72 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 21,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01461/11.51, allocations: 2.568 MB / 3.791 GB, free: 48.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.019/11.53, allocations: 5.329 MB / 3.796 GB, free: 46.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/11.53, allocations: 5.875 kB / 3.796 GB, free: 46.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007721/11.54, allocations: 2.527 MB / 3.798 GB, free: 44.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00423/11.54, allocations: 471 kB / 3.799 GB, free: 44.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05223/11.6, allocations: 19.94 MB / 3.818 GB, free: 28.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002271/11.6, allocations: 1.583 MB / 3.82 GB, free: 27.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.613e-06/11.6, allocations: 0 / 3.82 GB, free: 27.59 MB / 426.7 MB Notification: Performance of Templates: time 0.455/12.05, allocations: 100.9 MB / 3.918 GB, free: 77.49 MB / 426.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)