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.005666/0.005666, allocations: 95.31 kB / 15.73 MB, free: 6.051 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.001256/0.001256, allocations: 202.6 kB / 16.68 MB, free: 5.973 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.363/1.363, 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.002539/0.002539, allocations: 278.8 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9868/0.9868, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 104.2 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1771, allocations: 86.97 MB / 0.7659 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.00344/0.1806, allocations: 1.762 MB / 0.7676 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.1819, allocations: 0.6559 MB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.837e-05/0.1821, allocations: 4 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.378e-05/0.1821, allocations: 11.81 kB / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.869e-05/0.1823, allocations: 23.78 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006713/0.1829, allocations: 162.6 kB / 0.7685 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.1832, allocations: 131.5 kB / 0.7686 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.1833, allocations: 57.11 kB / 0.7687 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.1835, allocations: 55.84 kB / 0.7687 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.575e-05/0.1836, allocations: 59.69 kB / 0.7688 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.1836, allocations: 8 kB / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.1837, allocations: 47.97 kB / 0.7688 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.979e-05/0.1838, allocations: 35.89 kB / 0.7689 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.777e-05/0.1838, allocations: 47.73 kB / 0.7689 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.1841, allocations: 155.3 kB / 0.769 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1841, allocations: 0 / 0.769 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1841, allocations: 0 / 0.769 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.1841, allocations: 4 kB / 0.7691 GB, free: 5.68 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.0006415/0.1848, allocations: 438.8 kB / 0.7695 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1848, allocations: 16.03 kB / 0.7695 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.402e-05/0.1849, allocations: 38.75 kB / 0.7695 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008009/0.1857, allocations: 108.7 kB / 0.7696 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001715/0.1858, allocations: 188.2 kB / 0.7698 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.186, allocations: 63.97 kB / 0.7699 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.186, allocations: 12.31 kB / 0.7699 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.1865, allocations: 173.4 kB / 0.77 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.1865, allocations: 0 / 0.77 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.1866, allocations: 4 kB / 0.77 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1866, allocations: 0 / 0.77 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006138/0.1872, allocations: 159.8 kB / 0.7702 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.1883, allocations: 486 kB / 0.7707 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.1893, allocations: 222.3 kB / 0.7709 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.1896, allocations: 76.91 kB / 0.7709 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.1896, allocations: 4 kB / 0.771 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.1897, allocations: 30.56 kB / 0.771 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.1897, allocations: 0 / 0.771 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.001013/0.1907, allocations: 265.3 kB / 0.7712 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.1908, allocations: 55.41 kB / 0.7713 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.1909, allocations: 140.1 kB / 0.7714 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.1909, allocations: 25.7 kB / 0.7714 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.294e-05/0.191, allocations: 112.2 kB / 0.7716 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.191, allocations: 23.78 kB / 0.7716 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.1911, allocations: 29.7 kB / 0.7716 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.1912, allocations: 314.8 kB / 0.7719 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.1915, allocations: 79.91 kB / 0.772 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.1918, allocations: 90.5 kB / 0.7721 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006608/0.1924, allocations: 158.4 kB / 0.7722 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1925, allocations: 0 / 0.7722 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007449/0.1932, allocations: 205.7 kB / 0.7724 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1932, allocations: 10.34 kB / 0.7724 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1932, allocations: 11.92 kB / 0.7724 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1933, allocations: 3.938 kB / 0.7724 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.1935, allocations: 39.95 kB / 0.7725 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1935, allocations: 0 / 0.7725 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.1937, allocations: 31.84 kB / 0.7725 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.1938, allocations: 4 kB / 0.7725 GB, free: 1.875 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.000205/0.194, allocations: 121.5 kB / 0.7726 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/0.194, allocations: 7.953 kB / 0.7726 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007118/0.1947, allocations: 210.1 kB / 0.7728 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.1947, allocations: 7.984 kB / 0.7728 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1948, allocations: 0 / 0.7728 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1948, allocations: 0 / 0.7728 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000246/0.195, allocations: 238.4 kB / 0.7731 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.195, allocations: 0 / 0.7731 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.1952, allocations: 31.95 kB / 0.7731 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1953, allocations: 4 kB / 0.7731 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.1953, allocations: 3.938 kB / 0.7731 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1953, allocations: 0 / 0.7731 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1953, allocations: 0 / 0.7731 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.196, allocations: 291.3 kB / 0.7734 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.052e-05/0.196, allocations: 85.06 kB / 0.7735 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.196, allocations: 3.938 kB / 0.7735 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.1963, allocations: 27.95 kB / 0.7735 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/0.1964, allocations: 11.98 kB / 0.7735 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.1964, allocations: 7.984 kB / 0.7735 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001606/0.1966, allocations: 105.3 kB / 0.7736 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1966, allocations: 4 kB / 0.7736 GB, free: 0.6406 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002663/0.1969, allocations: 27.89 kB / 0.7736 GB, free: 0.6133 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.3165/0.5134, allocations: 0.8205 MB / 0.7744 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007999/0.5142, allocations: 157.9 kB / 0.7746 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5142, allocations: 1.125 kB / 0.7746 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003308/0.5146, allocations: 86.39 kB / 0.7747 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.515, allocations: 7.375 kB / 0.7747 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.5178, allocations: 1.825 MB / 0.7765 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.518, allocations: 0.7 MB / 0.7772 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.558e-05/0.5181, allocations: 14.17 kB / 0.7772 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.5181, allocations: 34.55 kB / 0.7772 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of SimCode: time 4.41e-07/0.5181, allocations: 0.875 kB / 0.7772 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.5368, allocations: 2.777 MB / 0.7799 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.502/8.039, allocations: 5.766 kB / 0.7799 GB, free: 12.27 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)