Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_dev_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.004333/0.004334, allocations: 186 kB / 7.457 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7238/0.7238, allocations: 133.5 MB / 141.4 MB, free: 15.68 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.579/1.579, allocations: 221.3 MB / 395 MB, free: 10.18 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.001246/0.001245, allocations: 107.4 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4374/0.4387, allocations: 88.41 MB / 0.5529 GB, free: 89.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.6163, allocations: 82.31 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.217/1.834, allocations: 379.5 MB / 1.004 GB, free: 253.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/1.834, allocations: 86.02 kB / 1.004 GB, free: 253.3 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.507/7.341, allocations: 1.482 GB / 2.486 GB, free: 70.53 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.18e-05/7.341, allocations: 11.66 kB / 2.486 GB, free: 70.53 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007689/7.349, allocations: 0.8263 MB / 2.487 GB, free: 70.22 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02222/7.371, allocations: 6.975 MB / 2.494 GB, free: 69.27 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003414/7.371, allocations: 107.3 kB / 2.494 GB, free: 69.27 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001875/7.373, allocations: 211.7 kB / 2.494 GB, free: 69.27 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01302/7.386, allocations: 4.854 MB / 2.499 GB, free: 69.25 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01829/7.405, allocations: 4.861 MB / 2.504 GB, free: 68.56 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003472/7.405, allocations: 14.41 kB / 2.504 GB, free: 68.55 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001771/7.407, allocations: 11 kB / 2.504 GB, free: 68.55 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002737/7.407, allocations: 115.3 kB / 2.504 GB, free: 68.55 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05413/7.461, allocations: 22.37 MB / 2.526 GB, free: 54.05 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004827/7.466, allocations: 2.351 MB / 2.528 GB, free: 52.87 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003648/7.47, allocations: 1.775 MB / 2.53 GB, free: 51.97 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01804/7.488, allocations: 6.93 MB / 2.536 GB, free: 46.82 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003896/7.492, allocations: 1.746 MB / 2.538 GB, free: 45.82 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=158): time 6.893e-06/7.492, allocations: 3.219 kB / 2.538 GB, free: 45.82 MB / 0.7136 GB Notification: Performance of matching and sorting (n=158): time 0.02132/7.513, allocations: 6.195 MB / 2.544 GB, free: 39.87 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/7.513, allocations: 76.66 kB / 2.544 GB, free: 39.78 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/7.524, allocations: 4.09 MB / 2.548 GB, free: 35.7 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001047/7.525, allocations: 33.7 kB / 2.548 GB, free: 35.66 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.002897/7.528, allocations: 1.607 MB / 2.55 GB, free: 34.02 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.00193/7.53, allocations: 0.543 MB / 2.55 GB, free: 33.47 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005991/7.531, allocations: 0 / 2.55 GB, free: 33.47 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002763/7.531, allocations: 415.2 kB / 2.551 GB, free: 33.06 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002656/7.534, allocations: 1.547 MB / 2.552 GB, free: 31.51 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003468/7.537, allocations: 2.789 MB / 2.555 GB, free: 28.14 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004617/7.542, allocations: 2.145 MB / 2.557 GB, free: 25.99 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.025e-05/7.542, allocations: 14.34 kB / 2.557 GB, free: 25.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.06731/7.609, allocations: 11.76 MB / 2.569 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.466/8.075, allocations: 15 MB / 2.583 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001429/8.076, allocations: 33.53 kB / 2.583 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0693/8.145, allocations: 10.75 MB / 2.594 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/8.148, allocations: 0.6294 MB / 2.594 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01134/8.16, allocations: 5.865 MB / 2.6 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006987/8.167, allocations: 446.9 kB / 2.601 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008434/8.168, allocations: 197.7 kB / 2.601 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/8.168, allocations: 3.562 kB / 2.601 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06341/8.231, allocations: 11.05 MB / 2.612 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/8.231, allocations: 32.88 kB / 2.612 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06905/8.3, allocations: 10.7 MB / 2.622 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003102/8.303, allocations: 0.6321 MB / 2.623 GB, free: 133.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/8.317, allocations: 8.333 MB / 2.631 GB, free: 130.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006286/8.324, allocations: 376.9 kB / 2.631 GB, free: 130.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008756/8.325, allocations: 192.8 kB / 2.631 GB, free: 130.8 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.00119/8.326, allocations: 205.5 kB / 2.632 GB, free: 130.7 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001978/8.328, allocations: 435.6 kB / 2.632 GB, free: 130.7 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/8.34, allocations: 4.815 MB / 2.637 GB, free: 130.5 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.024e-05/8.34, allocations: 20.47 kB / 2.637 GB, free: 130.5 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/8.34, allocations: 3.422 kB / 2.637 GB, free: 130.5 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00894/8.349, allocations: 5.115 MB / 2.642 GB, free: 129.1 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03156/8.38, allocations: 9.993 MB / 2.651 GB, free: 128.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.623e-05/8.381, allocations: 3.781 kB / 2.651 GB, free: 128.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002631/8.383, allocations: 372.5 kB / 2.652 GB, free: 128.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005697/8.389, allocations: 1.872 MB / 2.654 GB, free: 128.3 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00049/8.389, allocations: 27.89 kB / 2.654 GB, free: 128.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006943/8.396, allocations: 3.541 MB / 2.657 GB, free: 126.7 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.134e-05/8.396, allocations: 6.594 kB / 2.657 GB, free: 126.7 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02448/8.421, allocations: 7.936 MB / 2.665 GB, free: 126.1 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02798/8.449, allocations: 10.73 MB / 2.675 GB, free: 125.1 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00488/8.454, allocations: 1.028 MB / 2.676 GB, free: 124.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002178/8.456, allocations: 3.891 kB / 2.676 GB, free: 124.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005992/8.462, allocations: 227.3 kB / 2.677 GB, free: 124.8 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004484/8.463, allocations: 104.6 kB / 2.677 GB, free: 124.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003925/8.463, allocations: 87.95 kB / 2.677 GB, free: 124.8 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.006839/8.47, allocations: 3.095 MB / 2.68 GB, free: 124.6 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01648/8.486, allocations: 2.979 MB / 2.683 GB, free: 124.5 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.003219/8.49, allocations: 1.148 MB / 2.684 GB, free: 124.3 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.01838/8.508, allocations: 7.015 MB / 2.691 GB, free: 123.9 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/8.508, allocations: 0 / 2.691 GB, free: 123.9 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.005634/8.514, allocations: 2.128 MB / 2.693 GB, free: 123.9 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01458/8.528, allocations: 2.282 MB / 2.695 GB, free: 123.9 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02583/8.554, allocations: 7.831 MB / 2.703 GB, free: 122.4 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006477/8.561, allocations: 3.751 MB / 2.706 GB, free: 121.6 MB / 0.7136 GB Notification: Performance of SimCode: time 1.463e-06/8.561, allocations: 0 / 2.706 GB, free: 121.6 MB / 0.7136 GB (rm -f IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)