Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.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.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter",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.004156/0.004156, allocations: 178.6 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6887/0.6887, allocations: 133.5 MB / 141.4 MB, free: 15.79 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.521/1.521, allocations: 221.3 MB / 395 MB, free: 10.2 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.001019/0.001018, allocations: 102.8 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4846/0.4857, allocations: 88.42 MB / 0.5529 GB, free: 88.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.6752, allocations: 82.31 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.219/1.894, allocations: 374.4 MB / 0.9989 GB, free: 259.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/1.895, allocations: 88.23 kB / 0.999 GB, free: 259.7 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.3088/2.203, allocations: 171.7 MB / 1.167 GB, free: 86.43 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/2.203, allocations: 8 kB / 1.167 GB, free: 86.42 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/2.204, allocations: 39.53 kB / 1.167 GB, free: 86.38 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03473/2.238, allocations: 14.66 MB / 1.181 GB, free: 71.54 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/2.238, allocations: 4 kB / 1.181 GB, free: 71.53 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/2.238, allocations: 12 kB / 1.181 GB, free: 71.52 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002023/2.239, allocations: 100.6 kB / 1.181 GB, free: 71.42 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/2.239, allocations: 131.9 kB / 1.181 GB, free: 71.29 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/2.239, allocations: 3.938 kB / 1.181 GB, free: 71.29 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/2.239, allocations: 4 kB / 1.181 GB, free: 71.28 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/2.239, allocations: 7.938 kB / 1.181 GB, free: 71.27 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/2.24, allocations: 0.8214 MB / 1.182 GB, free: 70.37 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/2.24, allocations: 98.67 kB / 1.182 GB, free: 70.27 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.452e-05/2.24, allocations: 52.84 kB / 1.182 GB, free: 70.21 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002167/2.24, allocations: 336.4 kB / 1.183 GB, free: 69.81 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.527e-05/2.24, allocations: 30.56 kB / 1.183 GB, free: 69.77 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=12): time 1.994e-06/2.24, allocations: 0 / 1.183 GB, free: 69.77 MB / 0.6823 GB Notification: Performance of matching and sorting (n=12): time 0.0003391/2.241, allocations: 137.3 kB / 1.183 GB, free: 69.63 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.827e-05/2.241, allocations: 59.39 kB / 1.183 GB, free: 69.56 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/2.241, allocations: 246 kB / 1.183 GB, free: 69.31 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/2.241, allocations: 29.92 kB / 1.183 GB, free: 69.28 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.01e-05/2.241, allocations: 144.3 kB / 1.183 GB, free: 69.13 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/2.241, allocations: 47.33 kB / 1.183 GB, free: 69.08 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/2.241, allocations: 0 / 1.183 GB, free: 69.08 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.217e-05/2.241, allocations: 342.8 kB / 1.184 GB, free: 68.74 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.157e-05/2.241, allocations: 23.98 kB / 1.184 GB, free: 68.71 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.645e-05/2.241, allocations: 86.8 kB / 1.184 GB, free: 68.61 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/2.241, allocations: 40.06 kB / 1.184 GB, free: 68.57 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/2.241, allocations: 3.938 kB / 1.184 GB, free: 68.56 MB / 0.6823 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002339/2.242, allocations: 145.1 kB / 1.184 GB, free: 68.41 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/2.242, allocations: 182 kB / 1.184 GB, free: 68.22 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/2.242, allocations: 0 / 1.184 GB, free: 68.22 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/2.242, allocations: 4 kB / 1.184 GB, free: 68.22 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/2.242, allocations: 31.91 kB / 1.184 GB, free: 68.19 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/2.242, allocations: 4 kB / 1.184 GB, free: 68.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/2.242, allocations: 23.89 kB / 1.184 GB, free: 68.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/2.242, allocations: 11.98 kB / 1.184 GB, free: 68.15 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/2.242, allocations: 4 kB / 1.184 GB, free: 68.14 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001814/2.242, allocations: 75.89 kB / 1.184 GB, free: 68.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-06/2.242, allocations: 4 kB / 1.184 GB, free: 68.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-06/2.242, allocations: 0 / 1.184 GB, free: 68.07 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/2.242, allocations: 31.98 kB / 1.184 GB, free: 68.04 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-06/2.242, allocations: 0 / 1.184 GB, free: 68.04 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/2.243, allocations: 31.88 kB / 1.184 GB, free: 68 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/2.243, allocations: 4 kB / 1.184 GB, free: 68 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.566e-05/2.243, allocations: 112.9 kB / 1.184 GB, free: 67.88 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.746e-05/2.243, allocations: 35.53 kB / 1.184 GB, free: 67.85 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003654/2.243, allocations: 187.6 kB / 1.185 GB, free: 67.66 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/2.243, allocations: 8 kB / 1.185 GB, free: 67.65 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/2.243, allocations: 4 kB / 1.185 GB, free: 67.65 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/2.243, allocations: 3.984 kB / 1.185 GB, free: 67.64 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005727/2.244, allocations: 0.5309 MB / 1.185 GB, free: 67.06 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/2.244, allocations: 4 kB / 1.185 GB, free: 67.06 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/2.244, allocations: 32.06 kB / 1.185 GB, free: 67.03 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/2.244, allocations: 4 kB / 1.185 GB, free: 67.02 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/2.244, allocations: 0 / 1.185 GB, free: 67.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/2.244, allocations: 8.188 kB / 1.185 GB, free: 67.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/2.244, allocations: 0 / 1.185 GB, free: 67.02 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002767/2.244, allocations: 322.5 kB / 1.185 GB, free: 66.66 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003579/2.245, allocations: 0.6945 MB / 1.186 GB, free: 65.91 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.927e-05/2.245, allocations: 116.7 kB / 1.186 GB, free: 65.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/2.245, allocations: 7.906 kB / 1.186 GB, free: 65.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/2.245, allocations: 23.97 kB / 1.186 GB, free: 65.75 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/2.245, allocations: 15.92 kB / 1.186 GB, free: 65.73 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/2.245, allocations: 8 kB / 1.186 GB, free: 65.73 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001443/2.245, allocations: 196.6 kB / 1.186 GB, free: 65.54 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001769/2.247, allocations: 203.7 kB / 1.187 GB, free: 65.34 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005197/2.247, allocations: 280.3 kB / 1.187 GB, free: 65.06 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002421/2.248, allocations: 149.9 kB / 1.187 GB, free: 64.91 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/2.248, allocations: 7.938 kB / 1.187 GB, free: 64.91 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 8.349e-05/2.248, allocations: 55.92 kB / 1.187 GB, free: 64.85 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006298/2.248, allocations: 126.9 kB / 1.187 GB, free: 64.73 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006243/2.249, allocations: 383 kB / 1.188 GB, free: 64.33 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/2.249, allocations: 0.8304 MB / 1.188 GB, free: 63.47 MB / 0.6823 GB Notification: Performance of SimCode: time 2.41e-07/2.249, allocations: 3.938 kB / 1.188 GB, free: 63.46 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)