Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.6785/0.6785, allocations: 127.4 MB / 134.6 MB, free: 9.793 MB / 114.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 177.3 kB / 164.4 MB, free: 5.461 MB / 130.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.779/1.779, allocations: 205.1 MB / 399.1 MB, free: 2.961 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009815/0.0009816, allocations: 85.48 kB / 476.3 MB, free: 2.621 MB / 354.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2208/0.2218, allocations: 82.88 MB / 0.5461 GB, free: 15.68 MB / 450.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5489/0.7707, allocations: 76.75 MB / 0.621 GB, free: 86.3 MB / 498.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1554/0.9262, allocations: 101.8 MB / 0.7204 GB, free: 7.234 MB / 498.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.9265, allocations: 71.95 kB / 0.7205 GB, free: 7.164 MB / 498.8 MB 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.003366/0.9299, allocations: 0.986 MB / 0.7215 GB, free: 6.168 MB / 498.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.93, allocations: 12 kB / 0.7215 GB, free: 6.156 MB / 498.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.076e-05/0.9301, allocations: 0.75 kB / 0.7215 GB, free: 6.156 MB / 498.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.9302, allocations: 170.9 kB / 0.7217 GB, free: 5.949 MB / 498.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.9302, allocations: 8.172 kB / 0.7217 GB, free: 5.945 MB / 498.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.9303, allocations: 0.6094 kB / 0.7217 GB, free: 5.945 MB / 498.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.651e-05/0.9304, allocations: 11.19 kB / 0.7217 GB, free: 5.938 MB / 498.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.302e-05/0.9304, allocations: 38.25 kB / 0.7217 GB, free: 5.895 MB / 498.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.9305, allocations: 0.7812 kB / 0.7217 GB, free: 5.895 MB / 498.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.9305, allocations: 0.9844 kB / 0.7217 GB, free: 5.895 MB / 498.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.9305, allocations: 0.7188 kB / 0.7217 GB, free: 5.895 MB / 498.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005261/0.931, allocations: 254.4 kB / 0.722 GB, free: 5.613 MB / 498.8 MB Notification: Performance of preOpt comSubExp (simulation): time 7.243e-05/0.9311, allocations: 28.55 kB / 0.722 GB, free: 5.578 MB / 498.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.671e-05/0.9312, allocations: 12.92 kB / 0.722 GB, free: 5.562 MB / 498.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004263/0.9316, allocations: 204.2 kB / 0.7222 GB, free: 5.332 MB / 498.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.9316, allocations: 30.56 kB / 0.7222 GB, free: 5.293 MB / 498.8 MB Notification: Performance of pre-optimization done (n=2): time 2.766e-06/0.9317, allocations: 0 / 0.7222 GB, free: 5.293 MB / 498.8 MB Notification: Performance of matching and sorting (n=2): time 0.0003095/0.932, allocations: 57.56 kB / 0.7223 GB, free: 5.23 MB / 498.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.932, allocations: 55.41 kB / 0.7223 GB, free: 5.164 MB / 498.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.892e-05/0.9321, allocations: 93.84 kB / 0.7224 GB, free: 5.066 MB / 498.8 MB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.9321, allocations: 30.67 kB / 0.7224 GB, free: 5.031 MB / 498.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.097e-05/0.9322, allocations: 80.14 kB / 0.7225 GB, free: 4.949 MB / 498.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.9322, allocations: 7.906 kB / 0.7225 GB, free: 4.941 MB / 498.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.9322, allocations: 1.031 kB / 0.7225 GB, free: 4.941 MB / 498.8 MB Notification: Performance of setup shared object (initialization): time 7.176e-05/0.9323, allocations: 318.8 kB / 0.7228 GB, free: 4.621 MB / 498.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.768e-05/0.9323, allocations: 1 kB / 0.7228 GB, free: 4.621 MB / 498.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.59e-05/0.9323, allocations: 8 kB / 0.7228 GB, free: 4.613 MB / 498.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.9325, allocations: 13.05 kB / 0.7229 GB, free: 4.602 MB / 498.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.9325, allocations: 0 / 0.7229 GB, free: 4.602 MB / 498.8 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001481/0.9326, allocations: 63.44 kB / 0.7229 GB, free: 4.535 MB / 498.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.9326, allocations: 4.75 kB / 0.7229 GB, free: 4.531 MB / 498.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.9327, allocations: 0 / 0.7229 GB, free: 4.531 MB / 498.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.9327, allocations: 3.062 kB / 0.7229 GB, free: 4.531 MB / 498.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.9328, allocations: 13.69 kB / 0.7229 GB, free: 4.52 MB / 498.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.9328, allocations: 4.547 kB / 0.7229 GB, free: 4.516 MB / 498.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.426e-05/0.9329, allocations: 10.81 kB / 0.7229 GB, free: 4.508 MB / 498.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.9329, allocations: 0 / 0.7229 GB, free: 4.508 MB / 498.8 MB 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 5.944e-05/0.933, allocations: 105 kB / 0.723 GB, free: 4.398 MB / 498.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.933, allocations: 8.531 kB / 0.7231 GB, free: 4.391 MB / 498.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.9332, allocations: 61.72 kB / 0.7231 GB, free: 4.328 MB / 498.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.9332, allocations: 0 / 0.7231 GB, free: 4.328 MB / 498.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.9333, allocations: 0.5 kB / 0.7231 GB, free: 4.328 MB / 498.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.9333, allocations: 0 / 0.7231 GB, free: 4.328 MB / 498.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.9334, allocations: 142.7 kB / 0.7233 GB, free: 4.152 MB / 498.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9334, allocations: 3.188 kB / 0.7233 GB, free: 4.152 MB / 498.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.9335, allocations: 15.12 kB / 0.7233 GB, free: 4.141 MB / 498.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.9335, allocations: 0 / 0.7233 GB, free: 4.141 MB / 498.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.9335, allocations: 0.625 kB / 0.7233 GB, free: 4.141 MB / 498.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.9335, allocations: 0 / 0.7233 GB, free: 4.141 MB / 498.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.9335, allocations: 4.734 kB / 0.7233 GB, free: 4.137 MB / 498.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001578/0.9337, allocations: 152.9 kB / 0.7234 GB, free: 3.973 MB / 498.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002029/0.9339, allocations: 0.5225 MB / 0.7239 GB, free: 3.438 MB / 498.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.531e-05/0.9339, allocations: 81.11 kB / 0.724 GB, free: 3.34 MB / 498.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.934, allocations: 4.859 kB / 0.724 GB, free: 3.336 MB / 498.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.113e-05/0.9341, allocations: 7.969 kB / 0.724 GB, free: 3.332 MB / 498.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.834e-05/0.9341, allocations: 11.98 kB / 0.724 GB, free: 3.32 MB / 498.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.9341, allocations: 0.5312 kB / 0.724 GB, free: 3.32 MB / 498.8 MB Notification: Performance of sort global known variables: time 2.562e-05/0.9342, allocations: 81.81 kB / 0.7241 GB, free: 3.242 MB / 498.8 MB Notification: Performance of remove unused functions: time 0.000792/0.935, allocations: 21.19 kB / 0.7241 GB, free: 3.223 MB / 498.8 MB 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.000174/0.9351, allocations: 99.25 kB / 0.7242 GB, free: 3.113 MB / 498.8 MB Notification: Performance of simCode: created initialization part: time 8.346e-05/0.9352, allocations: 16.5 kB / 0.7242 GB, free: 3.098 MB / 498.8 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.9352, allocations: 0.5 kB / 0.7242 GB, free: 3.098 MB / 498.8 MB Notification: Performance of simCode: created simulation system equations: time 2.137e-05/0.9353, allocations: 12.48 kB / 0.7243 GB, free: 3.086 MB / 498.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.9355, allocations: 5.25 kB / 0.7243 GB, free: 3.082 MB / 498.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002821/0.9358, allocations: 62.3 kB / 0.7243 GB, free: 3 MB / 498.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.936, allocations: 0.6899 MB / 0.725 GB, free: 2.285 MB / 498.8 MB Notification: Performance of SimCode: time 2.7e-07/0.936, allocations: 0 / 0.725 GB, free: 2.285 MB / 498.8 MB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)