Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.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) 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(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001008/0.001008, allocations: 203.1 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.147/1.147, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008356/0.0008356, allocations: 94.7 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09578/0.09664, allocations: 56.89 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08324/0.1799, allocations: 51.48 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.08/4.26, allocations: 2.813 GB / 3.199 GB, free: 29.46 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000159/4.26, allocations: 75.97 kB / 3.199 GB, free: 29.38 MB / 442.7 MB [/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: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 2.232/6.492, allocations: 0.7554 GB / 3.954 GB, free: 37.96 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/6.492, allocations: 7.438 kB / 3.954 GB, free: 37.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005052/6.497, allocations: 0.6351 MB / 3.955 GB, free: 37.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/6.5, allocations: 1.07 MB / 3.956 GB, free: 37.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.574e-05/6.5, allocations: 46 kB / 3.956 GB, free: 37.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002996/6.5, allocations: 62.53 kB / 3.956 GB, free: 37.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002773/6.503, allocations: 1.748 MB / 3.958 GB, free: 37.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/6.505, allocations: 1.568 MB / 3.959 GB, free: 37.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/6.505, allocations: 8.25 kB / 3.959 GB, free: 37.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/6.505, allocations: 7.531 kB / 3.959 GB, free: 37.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.327e-05/6.505, allocations: 89.38 kB / 3.959 GB, free: 37.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.466/6.971, allocations: 189.3 MB / 4.144 GB, free: 136.7 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/6.973, allocations: 1.106 MB / 4.145 GB, free: 136.6 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000681/6.974, allocations: 0.589 MB / 4.146 GB, free: 136.6 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03023/7.004, allocations: 19.28 MB / 4.165 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/7.004, allocations: 51.44 kB / 4.165 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=91): time 2.825e-06/7.004, allocations: 3.562 kB / 4.165 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=91): time 0.01321/7.018, allocations: 3.055 MB / 4.168 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/7.018, allocations: 217.5 kB / 4.168 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008873/7.019, allocations: 0.7746 MB / 4.169 GB, free: 123.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.506e-05/7.019, allocations: 25.7 kB / 4.169 GB, free: 123.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/7.019, allocations: 0.4989 MB / 4.169 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/7.019, allocations: 306.4 kB / 4.17 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.789e-05/7.019, allocations: 0 / 4.17 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 6.345e-05/7.019, allocations: 349.9 kB / 4.17 GB, free: 123 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007662/7.02, allocations: 0.605 MB / 4.17 GB, free: 123 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009067/7.021, allocations: 0.9588 MB / 4.171 GB, free: 122.7 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005445/7.026, allocations: 1.297 MB / 4.173 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/7.026, allocations: 1.875 kB / 4.173 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.009011/7.035, allocations: 3.068 MB / 4.176 GB, free: 122.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004986/7.036, allocations: 3.748 MB / 4.179 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/7.036, allocations: 10.84 kB / 4.179 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006021/7.042, allocations: 1.132 MB / 4.18 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/7.043, allocations: 294.3 kB / 4.181 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/7.048, allocations: 2.056 MB / 4.183 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/7.05, allocations: 265.5 kB / 4.183 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/7.05, allocations: 77.22 kB / 4.183 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/7.05, allocations: 7.781 kB / 4.183 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006187/7.056, allocations: 1.943 MB / 4.185 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/7.056, allocations: 19.06 kB / 4.185 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007696/7.057, allocations: 199 kB / 4.185 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/7.058, allocations: 360.3 kB / 4.186 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/7.059, allocations: 0.8305 MB / 4.186 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/7.061, allocations: 199.7 kB / 4.187 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/7.061, allocations: 76.67 kB / 4.187 GB, free: 117.5 MB / 0.5573 GB 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.0003628/7.062, allocations: 143.1 kB / 4.187 GB, free: 117.4 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/7.063, allocations: 0.497 MB / 4.187 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008187/7.071, allocations: 4.378 MB / 4.192 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.162e-05/7.071, allocations: 27.69 kB / 4.192 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/7.071, allocations: 0 / 4.192 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/7.071, allocations: 7.594 kB / 4.192 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009569/7.081, allocations: 6.08 MB / 4.197 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/7.081, allocations: 3.094 kB / 4.197 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000501/7.081, allocations: 119.3 kB / 4.198 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00412/7.085, allocations: 2.252 MB / 4.2 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.883e-05/7.085, allocations: 19.81 kB / 4.2 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004914/7.09, allocations: 2.823 MB / 4.203 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/7.09, allocations: 9.031 kB / 4.203 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008021/7.098, allocations: 3.665 MB / 4.206 GB, free: 115.2 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008208/7.107, allocations: 4.165 MB / 4.21 GB, free: 114.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007648/7.107, allocations: 0.5054 MB / 4.211 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/7.108, allocations: 4.812 kB / 4.211 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/7.109, allocations: 99.59 kB / 4.211 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/7.109, allocations: 75.31 kB / 4.211 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.11e-05/7.109, allocations: 38.86 kB / 4.211 GB, free: 114 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0009768/7.11, allocations: 0.8715 MB / 4.212 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007474/7.117, allocations: 2.355 MB / 4.214 GB, free: 113.7 MB / 0.5573 GB 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.005744/7.123, allocations: 2.426 MB / 4.216 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004379/7.128, allocations: 2.798 MB / 4.219 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/7.128, allocations: 0 / 4.219 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001747/7.129, allocations: 1.362 MB / 4.221 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/7.131, allocations: 477.3 kB / 4.221 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004222/7.136, allocations: 2.732 MB / 4.224 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009426/7.137, allocations: 1.504 MB / 4.225 GB, free: 112.1 MB / 0.5573 GB Notification: Performance of SimCode: time 9.51e-07/7.137, allocations: 0 / 4.225 GB, free: 112.1 MB / 0.5573 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)