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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.379/1.379, allocations: 252 MB / 267 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001/0.001001, allocations: 175.6 kB / 326.6 MB, free: 2.199 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.4 MB / 0.5777 GB, free: 20.5 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.0008313/0.0008313, allocations: 102.8 kB / 0.6823 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004867/0.0004871, allocations: 14.47 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2387, allocations: 106.3 MB / 0.9003 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001687/0.2404, allocations: 1.168 MB / 0.9014 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000786/0.2412, allocations: 480.7 kB / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.645e-05/0.2413, allocations: 0 / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.627e-05/0.2413, allocations: 3.938 kB / 0.9019 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.856e-05/0.2414, allocations: 0 / 0.9019 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.2416, allocations: 27.91 kB / 0.9019 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.518e-05/0.2417, allocations: 23.92 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.811e-05/0.2418, allocations: 0 / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.276e-05/0.2419, allocations: 15.98 kB / 0.902 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.338e-05/0.2419, allocations: 7.938 kB / 0.902 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.2419, allocations: 0 / 0.902 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.446e-05/0.242, allocations: 23.97 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.698e-06/0.242, allocations: 7.922 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.189e-05/0.242, allocations: 29.7 kB / 0.902 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.121e-05/0.2421, allocations: 15.97 kB / 0.9021 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2421, allocations: 0 / 0.9021 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.814e-06/0.2422, allocations: 0 / 0.9021 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.2422, allocations: 0 / 0.9021 GB, free: 62.34 MB / 0.6042 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.0004208/0.2426, allocations: 343.6 kB / 0.9024 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.2426, allocations: 12.03 kB / 0.9024 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.521e-05/0.2427, allocations: 30.56 kB / 0.9024 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.2427, allocations: 7.859 kB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.2429, allocations: 167.1 kB / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.2429, allocations: 0 / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.2429, allocations: 0 / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.2431, allocations: 61.56 kB / 0.9026 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.2431, allocations: 3.984 kB / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.2431, allocations: 0 / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2431, allocations: 4 kB / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.2433, allocations: 55.89 kB / 0.9027 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003057/0.2436, allocations: 248.9 kB / 0.9029 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.2438, allocations: 38.56 kB / 0.903 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.1e-05/0.2439, allocations: 36.84 kB / 0.903 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.244, allocations: 85.09 kB / 0.9031 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.244, allocations: 30.56 kB / 0.9031 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.103e-06/0.2441, allocations: 0 / 0.9031 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0003551/0.2444, allocations: 101.6 kB / 0.9032 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.2444, allocations: 55.36 kB / 0.9033 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.687e-05/0.2445, allocations: 97.84 kB / 0.9034 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.324e-06/0.2445, allocations: 29.7 kB / 0.9034 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.157e-05/0.2446, allocations: 88.27 kB / 0.9035 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.2446, allocations: 3.906 kB / 0.9035 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.2446, allocations: 0 / 0.9035 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.741e-05/0.2447, allocations: 314.8 kB / 0.9038 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.594e-05/0.2448, allocations: 23.92 kB / 0.9038 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.203e-05/0.2448, allocations: 27.97 kB / 0.9038 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.711e-05/0.2449, allocations: 19.98 kB / 0.9039 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2449, allocations: 0 / 0.9039 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001857/0.2451, allocations: 85.62 kB / 0.9039 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2451, allocations: 8 kB / 0.9039 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2452, allocations: 0 / 0.9039 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.2452, allocations: 0 / 0.9039 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.811e-05/0.2453, allocations: 8 kB / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.2453, allocations: 7.938 kB / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.766e-05/0.2453, allocations: 12.03 kB / 0.904 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.2454, allocations: 0 / 0.904 GB, free: 60.12 MB / 0.6042 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 () * Number of clocked 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 4.744e-05/0.2454, allocations: 105.8 kB / 0.9041 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.356e-05/0.2454, allocations: 4 kB / 0.9041 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002278/0.2457, allocations: 92.7 kB / 0.9042 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.2457, allocations: 0 / 0.9042 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2457, allocations: 4.188 kB / 0.9042 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2457, allocations: 3.953 kB / 0.9042 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000109/0.2458, allocations: 161.7 kB / 0.9043 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2458, allocations: 0 / 0.9043 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.72e-05/0.2459, allocations: 11.98 kB / 0.9043 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.2459, allocations: 4 kB / 0.9043 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.2459, allocations: 0 / 0.9043 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2459, allocations: 4.031 kB / 0.9043 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2459, allocations: 0 / 0.9043 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002313/0.2462, allocations: 175.4 kB / 0.9045 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.618e-05/0.2462, allocations: 92.98 kB / 0.9046 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.2462, allocations: 3.938 kB / 0.9046 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.536e-05/0.2463, allocations: 7.984 kB / 0.9046 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/0.2464, allocations: 4 kB / 0.9046 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-06/0.2464, allocations: 0 / 0.9046 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.436e-05/0.2464, allocations: 87.27 kB / 0.9047 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2464, allocations: 0 / 0.9047 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000221/0.2466, allocations: 8 kB / 0.9047 GB, free: 59.27 MB / 0.6042 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 () * Number of clocked 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.0005562/0.2472, allocations: 0.7163 MB / 0.9054 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002314/0.2475, allocations: 43.95 kB / 0.9054 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2475, allocations: 0 / 0.9054 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 8.96e-05/0.2476, allocations: 32.05 kB / 0.9055 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2479, allocations: 0 / 0.9055 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004892/0.2484, allocations: 136.1 kB / 0.9056 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002007/0.2486, allocations: 0.6809 MB / 0.9063 GB, free: 57.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.469e-05/0.2487, allocations: 0 / 0.9063 GB, free: 57.58 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.243e-05/0.2488, allocations: 19.5 kB / 0.9063 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of SimCode: time 1.593e-06/0.2488, allocations: 0 / 0.9063 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01583/0.2646, allocations: 1.175 MB / 0.9074 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/0.2649, allocations: 193.7 kB / 0.9076 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/1.828, allocations: 0 / 0.9076 GB, free: 56.29 MB / 0.6042 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)