Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",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.005146/0.005146, allocations: 97.03 kB / 15.73 MB, free: 6.484 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.001231/0.001231, allocations: 191.7 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002127/0.002127, allocations: 283 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9658/0.9658, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 87.86 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1801, allocations: 86.98 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.003028/0.1832, allocations: 1.773 MB / 0.7676 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1844, allocations: 0.652 MB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.209e-05/0.1845, allocations: 7.938 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.778e-05/0.1846, allocations: 7.875 kB / 0.7683 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.517e-05/0.1847, allocations: 19.78 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005859/0.1853, allocations: 169.1 kB / 0.7685 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.1854, allocations: 127.6 kB / 0.7686 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1856, allocations: 61.09 kB / 0.7687 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.1857, allocations: 55.84 kB / 0.7687 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.864e-05/0.1858, allocations: 51.75 kB / 0.7688 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.1859, allocations: 8 kB / 0.7688 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.186, allocations: 43.97 kB / 0.7688 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.961e-05/0.186, allocations: 35.89 kB / 0.7688 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.516e-05/0.1861, allocations: 51.67 kB / 0.7689 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.1863, allocations: 151.4 kB / 0.769 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1863, allocations: 0 / 0.769 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.833e-06/0.1863, allocations: 8 kB / 0.769 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.1863, allocations: 0 / 0.769 GB, free: 5.727 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006212/0.187, allocations: 438.8 kB / 0.7695 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.187, allocations: 8.031 kB / 0.7695 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.149e-05/0.1871, allocations: 42.69 kB / 0.7695 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008568/0.1879, allocations: 116.7 kB / 0.7696 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.1881, allocations: 188.1 kB / 0.7698 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-05/0.1882, allocations: 63.97 kB / 0.7699 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.1882, allocations: 8.312 kB / 0.7699 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00052/0.1887, allocations: 181.4 kB / 0.77 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.1888, allocations: 0 / 0.77 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.1888, allocations: 0 / 0.77 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1888, allocations: 0 / 0.77 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006114/0.1894, allocations: 159.8 kB / 0.7702 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.1905, allocations: 482 kB / 0.7707 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.1915, allocations: 222.3 kB / 0.7709 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.1919, allocations: 76.91 kB / 0.7709 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.1919, allocations: 11.98 kB / 0.771 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.1919, allocations: 34.56 kB / 0.771 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.1919, allocations: 0 / 0.771 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.001041/0.193, allocations: 269.3 kB / 0.7712 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.193, allocations: 51.41 kB / 0.7713 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.1931, allocations: 136.1 kB / 0.7714 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.1932, allocations: 25.7 kB / 0.7714 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/0.1932, allocations: 112.2 kB / 0.7716 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.1933, allocations: 23.84 kB / 0.7716 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.1933, allocations: 29.7 kB / 0.7716 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.214e-05/0.1934, allocations: 314.8 kB / 0.7719 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000316/0.1937, allocations: 75.91 kB / 0.772 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003159/0.1941, allocations: 94.5 kB / 0.7721 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/0.1947, allocations: 158.4 kB / 0.7722 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1947, allocations: 4 kB / 0.7722 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006845/0.1954, allocations: 205.7 kB / 0.7724 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.1954, allocations: 9.875 kB / 0.7724 GB, free: 2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1955, allocations: 3.938 kB / 0.7724 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.1955, allocations: 64 / 0.7724 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.1957, allocations: 43.94 kB / 0.7725 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1958, allocations: 0 / 0.7725 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.196, allocations: 27.84 kB / 0.7725 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.196, allocations: 4 kB / 0.7725 GB, free: 1.922 MB / 0.5606 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 (8): * Single equations (assignments): 8 * 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 0.0001018/0.1961, allocations: 129.9 kB / 0.7726 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.1962, allocations: 7.953 kB / 0.7726 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000723/0.1969, allocations: 206.2 kB / 0.7728 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1969, allocations: 4 kB / 0.7728 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1969, allocations: 0 / 0.7728 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1969, allocations: 4 kB / 0.7728 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.1972, allocations: 238.3 kB / 0.7731 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1972, allocations: 0 / 0.7731 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.1974, allocations: 35.95 kB / 0.7731 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.1974, allocations: 0 / 0.7731 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.1974, allocations: 3.938 kB / 0.7731 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1974, allocations: 0 / 0.7731 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1975, allocations: 4 kB / 0.7731 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006928/0.1981, allocations: 283.3 kB / 0.7734 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.1982, allocations: 85.06 kB / 0.7735 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.1982, allocations: 3.938 kB / 0.7735 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003118/0.1986, allocations: 35.95 kB / 0.7735 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.1986, allocations: 7.984 kB / 0.7735 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.1986, allocations: 8.172 kB / 0.7735 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.629e-05/0.1987, allocations: 105.5 kB / 0.7736 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1987, allocations: 0 / 0.7736 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002635/0.199, allocations: 27.89 kB / 0.7736 GB, free: 0.6602 MB / 0.5606 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 (6): * Single equations (assignments): 6 * 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.324/0.523, allocations: 0.8199 MB / 0.7744 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008324/0.5239, allocations: 162.8 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5239, allocations: 2.906 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003298/0.5242, allocations: 82.7 kB / 0.7747 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.5246, allocations: 11.36 kB / 0.7747 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/0.5275, allocations: 1.82 MB / 0.7765 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.5276, allocations: 0.6999 MB / 0.7771 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.838e-05/0.5278, allocations: 15.55 kB / 0.7772 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.78e-05/0.5278, allocations: 37.09 kB / 0.7772 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of SimCode: time 6.51e-07/0.5278, allocations: 0.9844 kB / 0.7772 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.5467, allocations: 2.776 MB / 0.7799 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.521/8.067, allocations: 8.422 kB / 0.7799 GB, free: 12.35 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)