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.0008258/0.0008258, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005529/0.00553, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.304/1.304, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001796/0.001796, allocations: 267 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9004/0.9004, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004016/0.0004016, allocations: 15.5 kB / 0.5988 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1368, allocations: 88.54 MB / 0.6852 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.001674/0.1385, allocations: 1.477 MB / 0.6867 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009658/0.1394, allocations: 0.6444 MB / 0.6873 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.831e-05/0.1395, allocations: 6.375 kB / 0.6873 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.1395, allocations: 11.88 kB / 0.6873 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.527e-05/0.1396, allocations: 15.84 kB / 0.6873 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.1401, allocations: 144.5 kB / 0.6875 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.1402, allocations: 120.3 kB / 0.6876 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.1403, allocations: 49.05 kB / 0.6876 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.788e-05/0.1404, allocations: 51.78 kB / 0.6877 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.483e-05/0.1405, allocations: 36.38 kB / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.1405, allocations: 4 kB / 0.6877 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.354e-05/0.1406, allocations: 41.53 kB / 0.6878 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.204e-05/0.1407, allocations: 31.89 kB / 0.6878 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.233e-05/0.1407, allocations: 65.44 kB / 0.6879 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.1409, allocations: 135.5 kB / 0.688 GB, free: 12.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1409, allocations: 0.625 kB / 0.688 GB, free: 12.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1409, allocations: 3.312 kB / 0.688 GB, free: 12.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1409, allocations: 0 / 0.688 GB, free: 12.16 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.0004865/0.1414, allocations: 415.1 kB / 0.6884 GB, free: 11.71 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.1415, allocations: 12.02 kB / 0.6884 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.723e-05/0.1415, allocations: 47.97 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008398/0.1424, allocations: 141.3 kB / 0.6886 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.1425, allocations: 185.6 kB / 0.6888 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.701e-05/0.1426, allocations: 67.97 kB / 0.6888 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.1426, allocations: 8.375 kB / 0.6888 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/0.1432, allocations: 189.5 kB / 0.689 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.1432, allocations: 0 / 0.689 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.1432, allocations: 11.98 kB / 0.689 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.1432, allocations: 0 / 0.689 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006483/0.1439, allocations: 191.8 kB / 0.6892 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.1449, allocations: 0.4978 MB / 0.6897 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.146, allocations: 274.3 kB / 0.6899 GB, free: 9.988 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.1463, allocations: 108.8 kB / 0.69 GB, free: 9.879 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.1463, allocations: 0 / 0.69 GB, free: 9.879 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.1464, allocations: 30.56 kB / 0.6901 GB, free: 9.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.1464, allocations: 0 / 0.6901 GB, free: 9.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.001067/0.1474, allocations: 321.5 kB / 0.6904 GB, free: 9.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.1475, allocations: 55.34 kB / 0.6904 GB, free: 9.453 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.1476, allocations: 139.8 kB / 0.6906 GB, free: 9.309 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1476, allocations: 29.7 kB / 0.6906 GB, free: 9.273 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.273e-05/0.1477, allocations: 108.2 kB / 0.6907 GB, free: 9.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.1477, allocations: 15.72 kB / 0.6907 GB, free: 9.145 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.1477, allocations: 21.7 kB / 0.6907 GB, free: 9.117 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.364e-05/0.1478, allocations: 322.8 kB / 0.691 GB, free: 8.793 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.1482, allocations: 91.92 kB / 0.6911 GB, free: 8.703 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/0.1485, allocations: 118.4 kB / 0.6912 GB, free: 8.578 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006131/0.1491, allocations: 198.4 kB / 0.6914 GB, free: 8.375 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1491, allocations: 0 / 0.6914 GB, free: 8.375 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006888/0.1498, allocations: 233.5 kB / 0.6917 GB, free: 8.141 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1498, allocations: 5.562 kB / 0.6917 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1499, allocations: 7.922 kB / 0.6917 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.1499, allocations: 4 kB / 0.6917 GB, free: 8.125 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002582/0.1501, allocations: 47.95 kB / 0.6917 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1502, allocations: 4 kB / 0.6917 GB, free: 8.074 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.1504, allocations: 35.91 kB / 0.6918 GB, free: 8.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.1504, allocations: 0 / 0.6918 GB, free: 8.039 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 9.335e-05/0.1505, allocations: 130.5 kB / 0.6919 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.796e-05/0.1505, allocations: 7.906 kB / 0.6919 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007447/0.1513, allocations: 246.4 kB / 0.6921 GB, free: 7.645 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1513, allocations: 0 / 0.6921 GB, free: 7.645 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.1513, allocations: 0 / 0.6921 GB, free: 7.645 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1513, allocations: 0 / 0.6921 GB, free: 7.645 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.1515, allocations: 246.3 kB / 0.6924 GB, free: 7.355 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1515, allocations: 0 / 0.6924 GB, free: 7.355 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/0.1518, allocations: 43.95 kB / 0.6924 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1518, allocations: 0 / 0.6924 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.1518, allocations: 11.88 kB / 0.6924 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1518, allocations: 0 / 0.6924 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1518, allocations: 0 / 0.6924 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007199/0.1525, allocations: 327.2 kB / 0.6927 GB, free: 6.965 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.302e-05/0.1526, allocations: 81.02 kB / 0.6928 GB, free: 6.867 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1526, allocations: 3.938 kB / 0.6928 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.1529, allocations: 47.95 kB / 0.6929 GB, free: 6.816 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.153, allocations: 7.984 kB / 0.6929 GB, free: 6.809 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.153, allocations: 7.984 kB / 0.6929 GB, free: 6.801 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.934e-05/0.153, allocations: 103.3 kB / 0.693 GB, free: 6.699 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1531, allocations: 0 / 0.693 GB, free: 6.699 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002472/0.1533, allocations: 23.94 kB / 0.693 GB, free: 6.676 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.0009362/0.1542, allocations: 0.8567 MB / 0.6938 GB, free: 5.793 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006663/0.1549, allocations: 195.8 kB / 0.694 GB, free: 5.602 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1549, allocations: 0 / 0.694 GB, free: 5.602 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003244/0.1553, allocations: 108 kB / 0.6941 GB, free: 5.496 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.1556, allocations: 9.828 kB / 0.6941 GB, free: 5.488 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.1585, allocations: 1.963 MB / 0.696 GB, free: 3.441 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.1588, allocations: 0.7004 MB / 0.6967 GB, free: 2.715 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.116e-05/0.1589, allocations: 19.98 kB / 0.6967 GB, free: 2.695 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.578e-05/0.1589, allocations: 27.42 kB / 0.6968 GB, free: 2.668 MB / 494.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1589, allocations: 0 / 0.6968 GB, free: 2.668 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.596/1.755, allocations: 2.451 MB / 0.6992 GB, free: 360 kB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/1.755, allocations: 211.9 kB / 0.6994 GB, free: 92 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/3.441, allocations: 2.625 kB / 0.6994 GB, free: 92 kB / 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)