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.001084/0.001084, allocations: 101.4 kB / 15.7 MB, free: 28 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.00112/0.00112, allocations: 190.8 kB / 16.63 MB, free: 6.438 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.38/1.38, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.691/1.691, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001601/0.001601, allocations: 68.91 kB / 0.6718 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.2184, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003041/0.2215, allocations: 1.441 MB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008847/0.2224, allocations: 0.5005 MB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.095e-05/0.2225, allocations: 0 / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.922e-05/0.2225, allocations: 3.938 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.701e-05/0.2226, allocations: 3.938 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.2228, allocations: 27.92 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.246e-05/0.2229, allocations: 23.92 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.208e-05/0.223, allocations: 4 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.231e-05/0.2231, allocations: 11.98 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.133e-05/0.2231, allocations: 19.91 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.2231, allocations: 4 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.781e-05/0.2232, allocations: 15.98 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.135e-05/0.2232, allocations: 0 / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.2233, allocations: 11.94 kB / 0.7857 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.2234, allocations: 43.75 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2234, allocations: 4 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2234, allocations: 0 / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.2234, allocations: 0 / 0.7857 GB, free: 11.14 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.0004158/0.2238, allocations: 347.7 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.2239, allocations: 8.031 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.564e-05/0.2239, allocations: 34.75 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.462e-05/0.224, allocations: 0.9375 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.2241, allocations: 164.3 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.2241, allocations: 8.375 kB / 0.7862 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.2241, allocations: 384 / 0.7862 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.2243, allocations: 53.8 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2243, allocations: 0 / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.2243, allocations: 4 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2243, allocations: 3.938 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.2245, allocations: 35.95 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003245/0.2248, allocations: 256.8 kB / 0.7866 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.225, allocations: 34.56 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.707e-05/0.2251, allocations: 24.91 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000139/0.2252, allocations: 81.09 kB / 0.7867 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.2253, allocations: 38.5 kB / 0.7867 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.2253, allocations: 4 kB / 0.7867 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0003558/0.2256, allocations: 81.64 kB / 0.7868 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.2257, allocations: 51.41 kB / 0.7869 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.235e-05/0.2258, allocations: 101.9 kB / 0.787 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.2258, allocations: 25.7 kB / 0.787 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.2258, allocations: 89.31 kB / 0.7871 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.2259, allocations: 11.84 kB / 0.7871 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.2259, allocations: 17.72 kB / 0.7871 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.505e-05/0.226, allocations: 314.8 kB / 0.7874 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.2261, allocations: 15.98 kB / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.328e-05/0.2262, allocations: 19.97 kB / 0.7874 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.2263, allocations: 40.83 kB / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2263, allocations: 0 / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002013/0.2265, allocations: 69.66 kB / 0.7875 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.2266, allocations: 8.938 kB / 0.7876 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2266, allocations: 0 / 0.7876 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.2266, allocations: 0 / 0.7876 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.105e-05/0.2267, allocations: 7.984 kB / 0.7876 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.2267, allocations: 4.031 kB / 0.7876 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.819e-05/0.2268, allocations: 7.906 kB / 0.7876 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.2268, allocations: 4 kB / 0.7876 GB, free: 8.957 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 7.662e-05/0.2269, allocations: 120.5 kB / 0.7877 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.2269, allocations: 0 / 0.7877 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.2272, allocations: 80.7 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2272, allocations: 8.016 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2272, allocations: 0 / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2272, allocations: 0 / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.2274, allocations: 165.6 kB / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2274, allocations: 0 / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.52e-05/0.2274, allocations: 4 kB / 0.7879 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2274, allocations: 3.938 kB / 0.7879 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.2274, allocations: 0 / 0.7879 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2275, allocations: 4 kB / 0.7879 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2275, allocations: 3.984 kB / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.2277, allocations: 167.4 kB / 0.7881 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.2278, allocations: 85 kB / 0.7882 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.2278, allocations: 0 / 0.7882 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.272e-05/0.2278, allocations: 4 kB / 0.7882 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.2279, allocations: 3.984 kB / 0.7882 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.2279, allocations: 4 kB / 0.7882 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.154e-05/0.228, allocations: 91.56 kB / 0.7883 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.228, allocations: 0 / 0.7883 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002341/0.2282, allocations: 4 kB / 0.7883 GB, free: 8.125 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.0006707/0.2289, allocations: 0.7007 MB / 0.789 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.2291, allocations: 35.95 kB / 0.789 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2291, allocations: 0 / 0.789 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.379e-05/0.2292, allocations: 19.98 kB / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.2296, allocations: 7.984 kB / 0.789 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004811/0.2301, allocations: 143.3 kB / 0.7892 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.2303, allocations: 0.6807 MB / 0.7898 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.717e-05/0.2303, allocations: 0 / 0.7898 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.38e-05/0.2304, allocations: 7.438 kB / 0.7899 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of SimCode: time 1.874e-06/0.2304, allocations: 0 / 0.7899 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.248, allocations: 1.404 MB / 0.7912 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.481/7.729, allocations: 8.672 kB / 0.7912 GB, free: 5.102 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)