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.00105/0.00105, allocations: 108 kB / 15.61 MB, free: 152 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.001199/0.001199, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.33/1.33, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00222/0.00222, allocations: 282.8 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9206/0.9206, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 107 kB / 0.5954 GB, free: 27.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1556, allocations: 86.97 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.003703/0.1593, allocations: 1.756 MB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.1607, allocations: 0.6662 MB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.1609, allocations: 3.938 kB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.71e-05/0.1609, allocations: 8.594 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.372e-05/0.161, allocations: 25.14 kB / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006634/0.1617, allocations: 170.6 kB / 0.6829 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.162, allocations: 119.7 kB / 0.683 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.1622, allocations: 53.31 kB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.1623, allocations: 55.83 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.543e-05/0.1624, allocations: 51.77 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.1625, allocations: 15.98 kB / 0.6831 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.1626, allocations: 47.97 kB / 0.6832 GB, free: 13.63 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.263e-05/0.1627, allocations: 27.91 kB / 0.6832 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.1627, allocations: 63.59 kB / 0.6833 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.163, allocations: 135.6 kB / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.163, allocations: 0 / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.163, allocations: 0 / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.163, allocations: 4 kB / 0.6834 GB, free: 13.41 MB / 494.1 MB 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.0006571/0.1637, allocations: 438.9 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1638, allocations: 8.031 kB / 0.6838 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.717e-05/0.1638, allocations: 42.75 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000899/0.1647, allocations: 112.7 kB / 0.684 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.1649, allocations: 186 kB / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.165, allocations: 63.95 kB / 0.6842 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/0.1651, allocations: 12.38 kB / 0.6842 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.1656, allocations: 169.4 kB / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1656, allocations: 0 / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.1656, allocations: 4 kB / 0.6844 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1657, allocations: 4 kB / 0.6844 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006336/0.1663, allocations: 155.8 kB / 0.6845 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1676, allocations: 489.7 kB / 0.685 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.1687, allocations: 222.2 kB / 0.6852 GB, free: 11.37 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.169, allocations: 80.91 kB / 0.6853 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.169, allocations: 0 / 0.6853 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.1691, allocations: 38.5 kB / 0.6853 GB, free: 11.24 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.1691, allocations: 0 / 0.6853 GB, free: 11.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.00107/0.1702, allocations: 261.5 kB / 0.6856 GB, free: 10.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.1702, allocations: 59.41 kB / 0.6856 GB, free: 10.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.1704, allocations: 135.7 kB / 0.6858 GB, free: 10.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/0.1704, allocations: 29.7 kB / 0.6858 GB, free: 10.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.665e-05/0.1705, allocations: 116.1 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.1705, allocations: 15.8 kB / 0.6859 GB, free: 10.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.1706, allocations: 25.7 kB / 0.686 GB, free: 10.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1708, allocations: 322.8 kB / 0.6863 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.1711, allocations: 71.92 kB / 0.6863 GB, free: 10.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00033/0.1714, allocations: 98.44 kB / 0.6864 GB, free: 10.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006232/0.1721, allocations: 170.4 kB / 0.6866 GB, free: 9.891 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1721, allocations: 0 / 0.6866 GB, free: 9.891 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007093/0.1728, allocations: 201.7 kB / 0.6868 GB, free: 9.688 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.1728, allocations: 7.984 kB / 0.6868 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1728, allocations: 7.938 kB / 0.6868 GB, free: 9.672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1729, allocations: 0 / 0.6868 GB, free: 9.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.1731, allocations: 43.89 kB / 0.6868 GB, free: 9.629 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1731, allocations: 0 / 0.6868 GB, free: 9.629 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.1733, allocations: 27.81 kB / 0.6869 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.1734, allocations: 7.984 kB / 0.6869 GB, free: 9.594 MB / 494.1 MB 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.0001147/0.1735, allocations: 118.5 kB / 0.687 GB, free: 9.469 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.1736, allocations: 7.906 kB / 0.687 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007499/0.1743, allocations: 210.1 kB / 0.6872 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1743, allocations: 0 / 0.6872 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.1743, allocations: 4 kB / 0.6872 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1743, allocations: 0 / 0.6872 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002861/0.1746, allocations: 238.4 kB / 0.6874 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1746, allocations: 0 / 0.6874 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.1749, allocations: 35.89 kB / 0.6875 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1749, allocations: 0 / 0.6875 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.1749, allocations: 7.938 kB / 0.6875 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1749, allocations: 0 / 0.6875 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1749, allocations: 0 / 0.6875 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007051/0.1756, allocations: 287.3 kB / 0.6877 GB, free: 8.621 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.308e-05/0.1757, allocations: 85.02 kB / 0.6878 GB, free: 8.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.1757, allocations: 11.86 kB / 0.6878 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.176, allocations: 27.95 kB / 0.6879 GB, free: 8.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.1761, allocations: 4 kB / 0.6879 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.1761, allocations: 12.17 kB / 0.6879 GB, free: 8.465 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.861e-05/0.1762, allocations: 105.3 kB / 0.688 GB, free: 8.363 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1762, allocations: 0 / 0.688 GB, free: 8.363 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002589/0.1765, allocations: 27.84 kB / 0.688 GB, free: 8.336 MB / 494.1 MB 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.001018/0.1775, allocations: 0.8255 MB / 0.6888 GB, free: 7.484 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006768/0.1782, allocations: 167.8 kB / 0.689 GB, free: 7.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1782, allocations: 0 / 0.689 GB, free: 7.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003128/0.1785, allocations: 87.98 kB / 0.689 GB, free: 7.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.1788, allocations: 5.719 kB / 0.6891 GB, free: 7.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.182, allocations: 1.818 MB / 0.6908 GB, free: 5.324 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.1823, allocations: 0.7041 MB / 0.6915 GB, free: 4.594 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.227e-05/0.1824, allocations: 19.98 kB / 0.6915 GB, free: 4.574 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.896e-05/0.1825, allocations: 35.36 kB / 0.6916 GB, free: 4.539 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1825, allocations: 0 / 0.6916 GB, free: 4.539 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.2029, allocations: 2.715 MB / 0.6942 GB, free: 1.906 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/7.703, allocations: 12.62 kB / 0.6942 GB, free: 1.902 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)