Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside",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 7.0.3-maint.7.0.x/package.mo): time 1.257/1.257, allocations: 249.4 MB / 256.7 MB, free: 7.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009756/0.0009757, allocations: 192.7 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.134/1.134, allocations: 205.1 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008278/0.0008278, allocations: 93.25 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3801/0.381, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.5629, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5287/1.092, allocations: 132.4 MB / 1.014 GB, free: 6.395 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/1.092, allocations: 73.97 kB / 1.014 GB, free: 6.355 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.003277/1.095, allocations: 1.103 MB / 1.015 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/1.095, allocations: 12 kB / 1.015 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/1.095, allocations: 0 / 1.015 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/1.095, allocations: 170.4 kB / 1.015 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/1.095, allocations: 0 / 1.015 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-06/1.095, allocations: 3.938 kB / 1.015 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.493e-05/1.095, allocations: 17.5 kB / 1.015 GB, free: 5.117 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.24e-05/1.096, allocations: 37.67 kB / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/1.096, allocations: 0 / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/1.096, allocations: 0 / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/1.096, allocations: 0 / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003679/1.096, allocations: 254.6 kB / 1.016 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.714e-05/1.096, allocations: 30.14 kB / 1.016 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.659e-05/1.096, allocations: 16.55 kB / 1.016 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/1.096, allocations: 83.84 kB / 1.016 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/1.096, allocations: 34.55 kB / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/1.096, allocations: 0 / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002518/1.096, allocations: 48.66 kB / 1.016 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.531e-05/1.097, allocations: 51.41 kB / 1.016 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.782e-05/1.097, allocations: 100.2 kB / 1.016 GB, free: 4.391 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/1.097, allocations: 29.73 kB / 1.016 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/1.097, allocations: 83.33 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/1.097, allocations: 3.906 kB / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/1.097, allocations: 0 / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.733e-05/1.097, allocations: 314.8 kB / 1.016 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.418e-05/1.097, allocations: 3.312 kB / 1.016 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.39e-05/1.097, allocations: 4 kB / 1.016 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.934e-05/1.097, allocations: 23.78 kB / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/1.097, allocations: 4.062 kB / 1.016 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001261/1.097, allocations: 52.67 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/1.097, allocations: 7.906 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/1.097, allocations: 0 / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/1.097, allocations: 0 / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.517e-05/1.097, allocations: 8 kB / 1.016 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/1.097, allocations: 0 / 1.016 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.957e-05/1.097, allocations: 23.33 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/1.097, allocations: 0 / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.308e-05/1.097, allocations: 105 kB / 1.017 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/1.097, allocations: 7.844 kB / 1.017 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001661/1.098, allocations: 68.22 kB / 1.017 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/1.098, allocations: 4.75 kB / 1.017 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/1.098, allocations: 4.031 kB / 1.017 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/1.098, allocations: 0 / 1.017 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/1.098, allocations: 134 kB / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/1.098, allocations: 0 / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/1.098, allocations: 16.14 kB / 1.017 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/1.098, allocations: 0 / 1.017 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/1.098, allocations: 4 kB / 1.017 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/1.098, allocations: 7.938 kB / 1.017 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.098, allocations: 4 kB / 1.017 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001593/1.098, allocations: 155.6 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002538/1.098, allocations: 0.514 MB / 1.017 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.054e-05/1.098, allocations: 85.08 kB / 1.017 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/1.098, allocations: 0 / 1.017 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.744e-05/1.098, allocations: 11.98 kB / 1.018 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/1.098, allocations: 0 / 1.018 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/1.098, allocations: 0 / 1.018 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.363e-05/1.099, allocations: 86.7 kB / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007442/1.099, allocations: 8 kB / 1.018 GB, free: 2.562 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001255/1.099, allocations: 103.2 kB / 1.018 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.352e-05/1.099, allocations: 11.94 kB / 1.018 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/1.099, allocations: 4 kB / 1.018 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.978e-05/1.1, allocations: 7.938 kB / 1.018 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001629/1.1, allocations: 11.09 kB / 1.018 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001911/1.1, allocations: 64.77 kB / 1.018 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/1.1, allocations: 0.692 MB / 1.018 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of SimCode: time 2.2e-07/1.1, allocations: 0 / 1.018 GB, free: 1.625 MB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)