Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Delays.Examples.Delay,fileNamePrefix="Buildings_latest_Buildings_Fluid_Delays_Examples_Delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Delays.Examples.Delay,fileNamePrefix="Buildings_latest_Buildings_Fluid_Delays_Examples_Delay",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/Buildings 10.0.0-master/package.mo): time 2.164/2.164, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 182.5 kB / 490.8 MB, free: 1.93 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 92.11 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.8023/0.8038, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/1.166, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.047/6.213, allocations: 1.923 GB / 3.135 GB, free: 414.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/6.213, allocations: 87.61 kB / 3.135 GB, free: 414.3 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 1.723/7.936, allocations: 491.3 MB / 3.614 GB, free: 305.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/7.936, allocations: 7.125 kB / 3.614 GB, free: 305.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001722/7.938, allocations: 221.9 kB / 3.615 GB, free: 305.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001679/7.939, allocations: 0.6396 MB / 3.615 GB, free: 305.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/7.94, allocations: 15.03 kB / 3.615 GB, free: 305.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/7.94, allocations: 27.69 kB / 3.615 GB, free: 305.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007856/7.94, allocations: 370.4 kB / 3.616 GB, free: 305.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008191/7.941, allocations: 404 kB / 3.616 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/7.941, allocations: 0 / 3.616 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.131e-05/7.941, allocations: 3.797 kB / 3.616 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/7.941, allocations: 23.09 kB / 3.616 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003485/7.945, allocations: 2.082 MB / 3.618 GB, free: 304.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/7.945, allocations: 296.1 kB / 3.618 GB, free: 304.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/7.946, allocations: 184.9 kB / 3.619 GB, free: 304.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003528/7.946, allocations: 194.4 kB / 3.619 GB, free: 303.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/7.946, allocations: 44.95 kB / 3.619 GB, free: 303.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.945e-06/7.946, allocations: 0 / 3.619 GB, free: 303.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.00126/7.947, allocations: 382.3 kB / 3.619 GB, free: 303.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/7.947, allocations: 58.59 kB / 3.619 GB, free: 303.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005517/7.948, allocations: 384.6 kB / 3.62 GB, free: 303.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/7.948, allocations: 25.7 kB / 3.62 GB, free: 303.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/7.948, allocations: 228.4 kB / 3.62 GB, free: 303.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000127/7.948, allocations: 117 kB / 3.62 GB, free: 303.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/7.948, allocations: 0 / 3.62 GB, free: 303.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001097/7.949, allocations: 362.1 kB / 3.62 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/7.949, allocations: 114.3 kB / 3.62 GB, free: 303.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/7.949, allocations: 204.8 kB / 3.621 GB, free: 303 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/7.949, allocations: 148.7 kB / 3.621 GB, free: 303 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/7.949, allocations: 3.719 kB / 3.621 GB, free: 303 MB / 1.151 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006037/7.95, allocations: 375.4 kB / 3.621 GB, free: 303 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001468/7.95, allocations: 362.2 kB / 3.621 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/7.95, allocations: 0 / 3.621 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/7.95, allocations: 3.875 kB / 3.621 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/7.95, allocations: 78.55 kB / 3.621 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/7.95, allocations: 3.75 kB / 3.621 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007176/7.951, allocations: 57.23 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.429e-05/7.951, allocations: 17.38 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/7.951, allocations: 3.531 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004905/7.952, allocations: 286.1 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/7.952, allocations: 0 / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.686e-06/7.952, allocations: 7.469 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/7.952, allocations: 77.97 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/7.952, allocations: 0 / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/7.953, allocations: 59.47 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/7.953, allocations: 14.33 kB / 3.622 GB, free: 302.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (39): * Single equations (assignments): 39 * 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 0.0001463/7.953, allocations: 112.6 kB / 3.622 GB, free: 302.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/7.953, allocations: 57.34 kB / 3.622 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00063/7.954, allocations: 370.8 kB / 3.623 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/7.954, allocations: 3.688 kB / 3.623 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/7.954, allocations: 0 / 3.623 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004171/7.954, allocations: 388.8 kB / 3.623 GB, free: 302.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/7.956, allocations: 1.053 MB / 3.624 GB, free: 301.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/7.956, allocations: 3.188 kB / 3.624 GB, free: 301.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/7.956, allocations: 86.97 kB / 3.624 GB, free: 301.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/7.956, allocations: 3.781 kB / 3.624 GB, free: 301.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/7.957, allocations: 7.469 kB / 3.624 GB, free: 301.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.245e-06/7.957, allocations: 10.94 kB / 3.624 GB, free: 301.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/7.957, allocations: 2.875 kB / 3.624 GB, free: 301.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009989/7.958, allocations: 0.7238 MB / 3.625 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001377/7.959, allocations: 1.339 MB / 3.626 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003212/7.959, allocations: 173.5 kB / 3.626 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/7.959, allocations: 7.547 kB / 3.626 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006176/7.96, allocations: 48.59 kB / 3.626 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.096e-05/7.96, allocations: 18.53 kB / 3.626 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/7.96, allocations: 17.06 kB / 3.626 GB, free: 300.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0003436/7.961, allocations: 297.5 kB / 3.627 GB, free: 300.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00319/7.964, allocations: 0.687 MB / 3.627 GB, free: 300.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (del.dynBal.medium.Xi[1],del.dynBal.U,del.dynBal.m) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.002103/7.966, allocations: 1.44 MB / 3.629 GB, free: 300.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0009038/7.967, allocations: 485.3 kB / 3.629 GB, free: 300.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/7.967, allocations: 0 / 3.629 GB, free: 300.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003056/7.967, allocations: 163.5 kB / 3.629 GB, free: 300.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/7.969, allocations: 325.9 kB / 3.63 GB, free: 300.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/7.972, allocations: 0.9828 MB / 3.631 GB, free: 300 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007387/7.972, allocations: 1.011 MB / 3.632 GB, free: 299.3 MB / 1.151 GB Notification: Performance of SimCode: time 8.51e-07/7.972, allocations: 0 / 3.632 GB, free: 299.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe >> ../files/Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Delays.Examples.Delay_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Delays_Examples_Delay_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Delays_Examples_Delay.fmu > Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe 2>&1)