Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002046/0.002046, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.694/1.694, allocations: 292.3 MB / 0.5489 GB, free: 12.8 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 68.39 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.254, allocations: 114.6 MB / 0.7835 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002624/0.2567, allocations: 1.438 MB / 0.7849 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008269/0.2576, allocations: 0.4966 MB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.407e-05/0.2576, allocations: 0 / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.751e-05/0.2577, allocations: 3.938 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.677e-05/0.2577, allocations: 3.984 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.258, allocations: 27.92 kB / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.896e-05/0.258, allocations: 27.92 kB / 0.7854 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.697e-05/0.2581, allocations: 3.938 kB / 0.7854 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.189e-05/0.2582, allocations: 8 kB / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.174e-05/0.2583, allocations: 11.92 kB / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.2583, allocations: 4 kB / 0.7854 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.646e-05/0.2584, allocations: 31.91 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.197e-05/0.2584, allocations: 3.984 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.625e-05/0.2584, allocations: 11.94 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.2585, allocations: 31.89 kB / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2585, allocations: 0 / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2585, allocations: 0 / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2585, allocations: 4 kB / 0.7855 GB, free: 11.23 MB / 0.6075 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.0004594/0.259, allocations: 343.7 kB / 0.7859 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.2591, allocations: 20.02 kB / 0.7859 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.045e-05/0.2591, allocations: 30.75 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.404e-05/0.2591, allocations: 0.9375 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.2593, allocations: 164.3 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.2593, allocations: 4.375 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.2593, allocations: 384 / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.2595, allocations: 57.73 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.2595, allocations: 0 / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.006e-06/0.2595, allocations: 3.938 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.2595, allocations: 0 / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.2597, allocations: 43.94 kB / 0.7862 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003324/0.26, allocations: 248.9 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.2602, allocations: 42.48 kB / 0.7864 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.923e-05/0.2603, allocations: 24.91 kB / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/0.2604, allocations: 81.11 kB / 0.7865 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.2604, allocations: 34.56 kB / 0.7866 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2604, allocations: 0 / 0.7866 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0003638/0.2608, allocations: 77.64 kB / 0.7867 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.2609, allocations: 59.53 kB / 0.7867 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.606e-05/0.261, allocations: 101.8 kB / 0.7868 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.261, allocations: 33.64 kB / 0.7868 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.513e-05/0.261, allocations: 85.2 kB / 0.7869 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.2611, allocations: 7.844 kB / 0.7869 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.2611, allocations: 17.7 kB / 0.7869 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.414e-05/0.2612, allocations: 318.8 kB / 0.7872 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.271e-05/0.2613, allocations: 15.92 kB / 0.7873 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-05/0.2614, allocations: 23.98 kB / 0.7873 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.2615, allocations: 40.81 kB / 0.7873 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2615, allocations: 0 / 0.7873 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001886/0.2617, allocations: 57.67 kB / 0.7874 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.2617, allocations: 12.09 kB / 0.7874 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2618, allocations: 3.984 kB / 0.7874 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.2618, allocations: 0 / 0.7874 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.68e-05/0.2619, allocations: 7.938 kB / 0.7874 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2619, allocations: 4 kB / 0.7874 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.804e-05/0.2619, allocations: 11.89 kB / 0.7874 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.2619, allocations: 4 kB / 0.7874 GB, free: 9.039 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.263e-05/0.262, allocations: 109.8 kB / 0.7875 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.262, allocations: 4 kB / 0.7875 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.2623, allocations: 72.78 kB / 0.7876 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2623, allocations: 3.984 kB / 0.7876 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2623, allocations: 0 / 0.7876 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.2623, allocations: 0 / 0.7876 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.2624, allocations: 161.6 kB / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2625, allocations: 0 / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.639e-05/0.2625, allocations: 7.984 kB / 0.7878 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.2625, allocations: 4.031 kB / 0.7878 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.2625, allocations: 7.938 kB / 0.7878 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2625, allocations: 0 / 0.7878 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2626, allocations: 0 / 0.7878 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.2628, allocations: 167.4 kB / 0.7879 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.2628, allocations: 81.02 kB / 0.788 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.2629, allocations: 4.031 kB / 0.788 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.409e-05/0.2629, allocations: 7.984 kB / 0.788 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.263, allocations: 0 / 0.788 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.263, allocations: 4.25 kB / 0.788 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.213e-05/0.263, allocations: 91.27 kB / 0.7881 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.263, allocations: 0 / 0.7881 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002135/0.2633, allocations: 4 kB / 0.7881 GB, free: 8.223 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005473/0.2638, allocations: 0.7007 MB / 0.7888 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002222/0.2641, allocations: 39.89 kB / 0.7888 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2641, allocations: 4 kB / 0.7888 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.17e-05/0.2642, allocations: 20.08 kB / 0.7889 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.2645, allocations: 4.938 kB / 0.7889 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004023/0.2649, allocations: 147 kB / 0.789 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.2651, allocations: 0.6768 MB / 0.7897 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.266e-05/0.2652, allocations: 0 / 0.7897 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.2652, allocations: 19.48 kB / 0.7897 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of SimCode: time 1.9e-07/0.2652, allocations: 0 / 0.7897 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01856/0.2838, allocations: 1.381 MB / 0.791 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7/7.284, allocations: 5.109 kB / 0.791 GB, free: 5.195 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)