Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",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 4.0.0+maint.om/package.mo): time 0.002987/0.002987, allocations: 179.8 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7007/0.7007, allocations: 133.5 MB / 141.4 MB, free: 15.64 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 221.3 MB / 395 MB, free: 10.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 106.1 kB / 477.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4559/0.4569, allocations: 88.42 MB / 0.5529 GB, free: 88.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.6571, allocations: 82.3 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.243/1.9, allocations: 379.5 MB / 1.004 GB, free: 253.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/1.9, allocations: 85.84 kB / 1.004 GB, free: 253.4 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 5.717/7.617, allocations: 1.482 GB / 2.486 GB, free: 70.64 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/7.617, allocations: 6.844 kB / 2.486 GB, free: 70.64 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00737/7.624, allocations: 0.8286 MB / 2.487 GB, free: 70.33 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02815/7.653, allocations: 6.982 MB / 2.494 GB, free: 69.38 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002815/7.653, allocations: 103.4 kB / 2.494 GB, free: 69.38 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001819/7.655, allocations: 208.8 kB / 2.494 GB, free: 69.38 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0123/7.667, allocations: 4.859 MB / 2.499 GB, free: 69.36 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01714/7.684, allocations: 4.861 MB / 2.504 GB, free: 68.67 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001118/7.685, allocations: 11.88 kB / 2.504 GB, free: 68.66 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006735/7.685, allocations: 9.625 kB / 2.504 GB, free: 68.66 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001875/7.685, allocations: 114.5 kB / 2.504 GB, free: 68.66 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05284/7.738, allocations: 22.37 MB / 2.526 GB, free: 54.43 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005243/7.744, allocations: 2.35 MB / 2.528 GB, free: 53.25 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004109/7.748, allocations: 1.776 MB / 2.53 GB, free: 52.36 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01997/7.768, allocations: 6.933 MB / 2.536 GB, free: 47.2 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004111/7.772, allocations: 1.75 MB / 2.538 GB, free: 46.12 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=158): time 6.852e-06/7.772, allocations: 0 / 2.538 GB, free: 46.12 MB / 0.7136 GB Notification: Performance of matching and sorting (n=158): time 0.02176/7.794, allocations: 6.195 MB / 2.544 GB, free: 40.04 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/7.794, allocations: 64.72 kB / 2.544 GB, free: 39.96 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01155/7.805, allocations: 4.104 MB / 2.548 GB, free: 35.87 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001008/7.806, allocations: 35.23 kB / 2.548 GB, free: 35.83 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.003032/7.81, allocations: 1.6 MB / 2.55 GB, free: 34.2 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.002065/7.812, allocations: 0.5419 MB / 2.55 GB, free: 33.65 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006836/7.812, allocations: 2.094 kB / 2.55 GB, free: 33.65 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002918/7.813, allocations: 416.7 kB / 2.551 GB, free: 33.24 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002716/7.815, allocations: 1.547 MB / 2.552 GB, free: 31.69 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003583/7.819, allocations: 2.793 MB / 2.555 GB, free: 28.32 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005113/7.824, allocations: 2.145 MB / 2.557 GB, free: 26.17 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.706e-05/7.824, allocations: 8 kB / 2.557 GB, free: 26.16 MB / 0.7136 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.06993/7.894, allocations: 11.76 MB / 2.569 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.5422/8.436, allocations: 15 MB / 2.583 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001524/8.437, allocations: 34.31 kB / 2.583 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06959/8.506, allocations: 10.74 MB / 2.594 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/8.51, allocations: 0.6391 MB / 2.594 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/8.522, allocations: 5.859 MB / 2.6 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007766/8.53, allocations: 443.3 kB / 2.601 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/8.531, allocations: 195.9 kB / 2.601 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/8.531, allocations: 3.844 kB / 2.601 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06409/8.595, allocations: 11.06 MB / 2.612 GB, free: 133.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/8.595, allocations: 34.56 kB / 2.612 GB, free: 133.7 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07069/8.666, allocations: 10.69 MB / 2.622 GB, free: 133.7 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003398/8.669, allocations: 0.6398 MB / 2.623 GB, free: 133.7 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01475/8.684, allocations: 8.326 MB / 2.631 GB, free: 130.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007067/8.691, allocations: 368.3 kB / 2.631 GB, free: 130.7 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/8.692, allocations: 188.3 kB / 2.631 GB, free: 130.7 MB / 0.7136 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 277 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 15,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001323/8.694, allocations: 212.9 kB / 2.632 GB, free: 130.6 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002283/8.696, allocations: 434.4 kB / 2.632 GB, free: 130.6 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/8.709, allocations: 4.817 MB / 2.637 GB, free: 130.4 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.129e-05/8.709, allocations: 26.12 kB / 2.637 GB, free: 130.4 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/8.709, allocations: 0 / 2.637 GB, free: 130.4 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00964/8.719, allocations: 5.116 MB / 2.642 GB, free: 129 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03509/8.754, allocations: 9.993 MB / 2.651 GB, free: 128.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.747e-05/8.754, allocations: 6.062 kB / 2.651 GB, free: 128.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/8.757, allocations: 372.5 kB / 2.652 GB, free: 128.3 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005895/8.763, allocations: 1.866 MB / 2.654 GB, free: 128.2 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005869/8.764, allocations: 39.12 kB / 2.654 GB, free: 128.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007321/8.771, allocations: 3.533 MB / 2.657 GB, free: 126.7 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/8.771, allocations: 7.344 kB / 2.657 GB, free: 126.7 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02651/8.797, allocations: 7.938 MB / 2.665 GB, free: 126.1 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03083/8.828, allocations: 10.73 MB / 2.675 GB, free: 125.1 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00475/8.833, allocations: 1.024 MB / 2.676 GB, free: 124.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002477/8.836, allocations: 7.5 kB / 2.676 GB, free: 124.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00584/8.842, allocations: 226.8 kB / 2.677 GB, free: 124.7 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005882/8.842, allocations: 104.7 kB / 2.677 GB, free: 124.7 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005207/8.843, allocations: 92.44 kB / 2.677 GB, free: 124.7 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0083/8.851, allocations: 3.093 MB / 2.68 GB, free: 124.5 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01987/8.871, allocations: 2.989 MB / 2.683 GB, free: 124.4 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (139): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 5,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.004664/8.876, allocations: 1.135 MB / 2.684 GB, free: 124.2 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.02304/8.899, allocations: 7.013 MB / 2.691 GB, free: 123.8 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/8.899, allocations: 5.156 kB / 2.691 GB, free: 123.8 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.006143/8.905, allocations: 2.117 MB / 2.693 GB, free: 123.8 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01621/8.921, allocations: 2.28 MB / 2.695 GB, free: 123.8 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02861/8.95, allocations: 7.837 MB / 2.703 GB, free: 122.3 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008604/8.959, allocations: 3.743 MB / 2.706 GB, free: 121.5 MB / 0.7136 GB Notification: Performance of SimCode: time 2.524e-06/8.959, allocations: 1.5 kB / 2.706 GB, free: 121.5 MB / 0.7136 GB (rm -f IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)