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.001272/0.001271, 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.001358/0.001358, allocations: 193.9 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.361/1.361, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.627/1.627, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001349/0.00135, allocations: 71.78 kB / 0.6716 GB, free: 26.4 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2051, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002866/0.208, allocations: 1.434 MB / 0.7849 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007967/0.2089, allocations: 0.4889 MB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.281e-05/0.2089, allocations: 4 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.839e-05/0.209, allocations: 3.938 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.474e-05/0.209, allocations: 3.938 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.2092, allocations: 23.97 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.238e-05/0.2093, allocations: 27.92 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.487e-05/0.2094, allocations: 7.922 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.341e-05/0.2095, allocations: 15.88 kB / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.285e-05/0.2095, allocations: 15.92 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.2095, allocations: 4 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.568e-05/0.2096, allocations: 19.98 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.2096, allocations: 4 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.347e-05/0.2097, allocations: 15.92 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.483e-05/0.2098, allocations: 27.89 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2098, allocations: 0 / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2098, allocations: 0 / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2098, allocations: 0 / 0.7855 GB, free: 11.29 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.0003995/0.2102, allocations: 347.7 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2102, allocations: 8.031 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.908e-05/0.2103, allocations: 38.75 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.525e-05/0.2103, allocations: 0.9375 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.2104, allocations: 176.2 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.2105, allocations: 4.375 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.2105, allocations: 384 / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.2106, allocations: 53.8 kB / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2107, allocations: 0 / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.2107, allocations: 0 / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.2107, allocations: 0 / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.2109, allocations: 35.97 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003124/0.2112, allocations: 248.9 kB / 0.7864 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.2113, allocations: 38.5 kB / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.486e-05/0.2114, allocations: 24.91 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/0.2116, allocations: 89.09 kB / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.2116, allocations: 30.56 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.2116, allocations: 0 / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.000334/0.2119, allocations: 85.58 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.212, allocations: 51.41 kB / 0.7867 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.2121, allocations: 106 kB / 0.7868 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.2122, allocations: 29.7 kB / 0.7868 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.2122, allocations: 85.19 kB / 0.7869 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.862e-05/0.2122, allocations: 11.84 kB / 0.7869 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.882e-05/0.2123, allocations: 13.72 kB / 0.7869 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.2124, allocations: 314.8 kB / 0.7872 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.212e-05/0.2125, allocations: 23.91 kB / 0.7873 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.934e-05/0.2125, allocations: 19.98 kB / 0.7873 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.2127, allocations: 36.83 kB / 0.7873 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2127, allocations: 4 kB / 0.7873 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001835/0.2129, allocations: 65.59 kB / 0.7874 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.2129, allocations: 8 kB / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.2129, allocations: 8.031 kB / 0.7874 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.213, allocations: 0 / 0.7874 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.174e-05/0.213, allocations: 7.984 kB / 0.7874 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.2131, allocations: 3.984 kB / 0.7874 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.248e-05/0.2131, allocations: 7.906 kB / 0.7874 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.2131, allocations: 7.984 kB / 0.7874 GB, free: 9.09 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.205e-05/0.2132, allocations: 109.8 kB / 0.7875 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.198e-05/0.2132, allocations: 256 / 0.7875 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.2134, allocations: 76.78 kB / 0.7876 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2134, allocations: 0 / 0.7876 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2135, allocations: 7.938 kB / 0.7876 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2135, allocations: 0 / 0.7876 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.2136, allocations: 165.6 kB / 0.7878 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2136, allocations: 0 / 0.7878 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.255e-05/0.2137, allocations: 4 kB / 0.7878 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2137, allocations: 0 / 0.7878 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.2137, allocations: 12 kB / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2137, allocations: 4 kB / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2137, allocations: 0 / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.214, allocations: 163.5 kB / 0.7879 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.024e-05/0.214, allocations: 81.02 kB / 0.788 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.214, allocations: 0 / 0.788 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.012e-05/0.2141, allocations: 8.031 kB / 0.788 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.04e-05/0.2141, allocations: 7.984 kB / 0.788 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.2141, allocations: 4 kB / 0.788 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.337e-05/0.2142, allocations: 79.28 kB / 0.7881 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.623e-06/0.2142, allocations: 0 / 0.7881 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002084/0.2144, allocations: 7.938 kB / 0.7881 GB, free: 8.273 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.0005223/0.2149, allocations: 0.7007 MB / 0.7888 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.2152, allocations: 39.91 kB / 0.7888 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2152, allocations: 4 kB / 0.7888 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.416e-05/0.2153, allocations: 20.02 kB / 0.7889 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.2156, allocations: 14.94 kB / 0.7889 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004388/0.216, allocations: 139.1 kB / 0.789 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.2163, allocations: 0.6768 MB / 0.7897 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.312e-05/0.2163, allocations: 0 / 0.7897 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.817e-05/0.2163, allocations: 11.38 kB / 0.7897 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of SimCode: time 3.71e-07/0.2163, allocations: 4.062 kB / 0.7897 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.2359, allocations: 1.395 MB / 0.791 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/7.634, allocations: 1.172 kB / 0.791 GB, free: 5.246 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)