Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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: translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 102.5 kB / 16.27 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 187.8 kB / 17.2 MB, free: 5.609 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.514/1.514, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.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.748/1.748, allocations: 292.3 MB / 0.5495 GB, free: 17.45 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.001425/0.001425, allocations: 66.88 kB / 0.6722 GB, free: 6.59 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2136, allocations: 114.6 MB / 0.784 GB, free: 3.918 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001904/0.2155, allocations: 0.5932 MB / 0.7846 GB, free: 3.316 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.217, allocations: 1.144 MB / 0.7857 GB, free: 2.156 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.923e-05/0.217, allocations: 0 / 0.7857 GB, free: 2.156 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.729e-05/0.2171, allocations: 0 / 0.7857 GB, free: 2.156 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.2173, allocations: 27.84 kB / 0.7858 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 4.288e-06/0.2173, allocations: 0 / 0.7858 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 3.839e-05/0.2174, allocations: 8 kB / 0.7858 GB, free: 2.121 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.184e-05/0.2174, allocations: 0 / 0.7858 GB, free: 2.121 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.561e-05/0.2175, allocations: 7.938 kB / 0.7858 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 1.973e-05/0.2175, allocations: 0 / 0.7858 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.2175, allocations: 4 kB / 0.7858 GB, free: 2.109 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.2176, allocations: 27.89 kB / 0.7858 GB, free: 2.082 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 5.34e-06/0.2176, allocations: 0 / 0.7858 GB, free: 2.082 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 1.19e-05/0.2176, allocations: 0 / 0.7858 GB, free: 2.082 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 7.138e-05/0.2177, allocations: 15.92 kB / 0.7858 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2177, allocations: 0 / 0.7858 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2177, allocations: 0 / 0.7858 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.2177, allocations: 0 / 0.7858 GB, free: 2.066 MB / 0.6544 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.0002962/0.218, allocations: 319.6 kB / 0.7861 GB, free: 1.707 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.2181, allocations: 8.031 kB / 0.7861 GB, free: 1.699 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.399e-05/0.2181, allocations: 0.9375 kB / 0.7861 GB, free: 1.699 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.2182, allocations: 164.4 kB / 0.7863 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.2182, allocations: 8.375 kB / 0.7863 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.2183, allocations: 384 / 0.7863 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.519e-05/0.2184, allocations: 37.95 kB / 0.7863 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2184, allocations: 0 / 0.7863 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.2184, allocations: 3.984 kB / 0.7863 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2184, allocations: 0 / 0.7863 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.683e-05/0.2185, allocations: 12 kB / 0.7864 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.2186, allocations: 154 kB / 0.7865 GB, free: 1.234 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.2188, allocations: 30.58 kB / 0.7865 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.536e-05/0.2188, allocations: 20.88 kB / 0.7865 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.219, allocations: 81.05 kB / 0.7866 GB, free: 1.074 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.219, allocations: 38.5 kB / 0.7867 GB, free: 1.027 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.219, allocations: 4 kB / 0.7867 GB, free: 1.023 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.004263/0.2233, allocations: 0.5714 MB / 0.7872 GB, free: 456 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.2234, allocations: 51.41 kB / 0.7873 GB, free: 392 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.355e-05/0.2234, allocations: 89.86 kB / 0.7874 GB, free: 292 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.2234, allocations: 25.7 kB / 0.7874 GB, free: 260 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.937e-05/0.2235, allocations: 80.14 kB / 0.7875 GB, free: 176 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.681e-05/0.2235, allocations: 19.8 kB / 0.7875 GB, free: 156 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.786e-05/0.2236, allocations: 17.66 kB / 0.7875 GB, free: 132 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.3761/0.5996, allocations: 318.1 kB / 0.7878 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006842/0.6004, allocations: 82.73 kB / 0.7879 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/0.601, allocations: 100.2 kB / 0.788 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.6021, allocations: 189.8 kB / 0.7882 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.6021, allocations: 0 / 0.7882 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001252/0.6034, allocations: 217.5 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.6034, allocations: 5.25 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.6034, allocations: 2.156 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.6035, allocations: 0 / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.6039, allocations: 55.33 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.6039, allocations: 3.094 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.6043, allocations: 41.31 kB / 0.7885 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.6043, allocations: 2.625 kB / 0.7885 GB, free: 48.62 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 7.241e-05/0.6044, allocations: 112.4 kB / 0.7886 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.6044, allocations: 6.578 kB / 0.7886 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.6057, allocations: 237.5 kB / 0.7888 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.6057, allocations: 2.781 kB / 0.7888 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6057, allocations: 3.938 kB / 0.7888 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.6058, allocations: 0 / 0.7888 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.6072, allocations: 456.3 kB / 0.7892 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.6072, allocations: 0 / 0.7892 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003709/0.6076, allocations: 52.12 kB / 0.7893 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.6076, allocations: 0 / 0.7893 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.6076, allocations: 0 / 0.7893 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6076, allocations: 2.188 kB / 0.7893 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6076, allocations: 4 kB / 0.7893 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.6088, allocations: 303.6 kB / 0.7896 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.72e-05/0.6088, allocations: 86.95 kB / 0.7897 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.6089, allocations: 0 / 0.7897 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000354/0.6092, allocations: 42.44 kB / 0.7897 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.6093, allocations: 0 / 0.7897 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.6093, allocations: 2.625 kB / 0.7897 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 1.591e-05/0.6093, allocations: 79.88 kB / 0.7898 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6093, allocations: 4 kB / 0.7898 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002494/0.6096, allocations: 13.55 kB / 0.7898 GB, free: 47.84 MB / 0.6544 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 (5): * Single equations (assignments): 5 * 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.0001529/0.6097, allocations: 109.7 kB / 0.7899 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001246/0.611, allocations: 178.6 kB / 0.7901 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.611, allocations: 0 / 0.7901 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0005795/0.6116, allocations: 95.66 kB / 0.7902 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.6118, allocations: 4.906 kB / 0.7902 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.6129, allocations: 246.1 kB / 0.7904 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.613, allocations: 0.6776 MB / 0.7911 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.271e-05/0.6131, allocations: 13.16 kB / 0.7911 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of SimCode: time 3.81e-07/0.6131, allocations: 0 / 0.7911 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of Templates: time 0.00236/0.6155, allocations: 1.097 MB / 0.7922 GB, free: 46.83 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)