Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",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.001195/0.001195, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00118/0.00118, allocations: 189.5 kB / 16.25 MB, free: 6.629 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.262/1.262, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001892/0.001892, allocations: 279 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8605/0.8605, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001514, allocations: 92.8 kB / 0.5948 GB, free: 28.41 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1366, allocations: 86.99 MB / 0.6797 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.002425/0.139, allocations: 1.515 MB / 0.6812 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008003/0.1399, allocations: 0.5515 MB / 0.6818 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.135e-05/0.1399, allocations: 0 / 0.6818 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.822e-05/0.1399, allocations: 5.375 kB / 0.6818 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.909e-05/0.14, allocations: 0 / 0.6818 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.1403, allocations: 48.77 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.635e-05/0.1403, allocations: 31.86 kB / 0.6818 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.891e-05/0.1404, allocations: 4.969 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.531e-05/0.1405, allocations: 12.56 kB / 0.6819 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.196e-05/0.1405, allocations: 13.36 kB / 0.6819 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.1406, allocations: 7.984 kB / 0.6819 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.1407, allocations: 51.95 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.1407, allocations: 3.938 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.1407, allocations: 15.94 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.1408, allocations: 71.78 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1408, allocations: 0 / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1409, allocations: 0 / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1409, allocations: 0 / 0.682 GB, free: 14.63 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003441/0.1412, allocations: 339.5 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1413, allocations: 12.03 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.941e-05/0.1413, allocations: 34.75 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.1413, allocations: 8.828 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.1414, allocations: 168.3 kB / 0.6825 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.1415, allocations: 8.375 kB / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.1415, allocations: 4.375 kB / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.1416, allocations: 45.75 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-06/0.1416, allocations: 3.938 kB / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.1416, allocations: 4 kB / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1416, allocations: 0 / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.486e-05/0.1417, allocations: 19.98 kB / 0.6826 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002708/0.142, allocations: 260.8 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.55e-05/0.1421, allocations: 38.56 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.246e-05/0.1421, allocations: 16.86 kB / 0.6829 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007082/0.1428, allocations: 477.4 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.615e-05/0.1429, allocations: 34.5 kB / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1429, allocations: 0 / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002065/0.1431, allocations: 65.67 kB / 0.6835 GB, free: 12.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.1431, allocations: 51.41 kB / 0.6835 GB, free: 12.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.787e-05/0.1432, allocations: 106 kB / 0.6836 GB, free: 12.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.1432, allocations: 29.7 kB / 0.6837 GB, free: 12.64 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.1432, allocations: 88.14 kB / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.1433, allocations: 3.906 kB / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.1433, allocations: 21.7 kB / 0.6838 GB, free: 12.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.574e-05/0.1434, allocations: 314.8 kB / 0.6841 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.71e-05/0.1434, allocations: 8 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.187e-05/0.1435, allocations: 15.92 kB / 0.6841 GB, free: 12.18 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.716e-05/0.1435, allocations: 28.91 kB / 0.6841 GB, free: 12.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1435, allocations: 0 / 0.6841 GB, free: 12.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001014/0.1437, allocations: 49.69 kB / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1437, allocations: 8 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1437, allocations: 0 / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.1437, allocations: 0 / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.566e-05/0.1438, allocations: 11.97 kB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.1438, allocations: 0 / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.94e-05/0.1438, allocations: 8.031 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.1438, allocations: 4 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB 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 6e-05/0.1439, allocations: 114.4 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.1439, allocations: 11.89 kB / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.1441, allocations: 57.22 kB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1441, allocations: 0 / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.1441, allocations: 3.984 kB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1441, allocations: 7.969 kB / 0.6844 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.1442, allocations: 161.6 kB / 0.6845 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1442, allocations: 0 / 0.6845 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.948e-05/0.1443, allocations: 7.984 kB / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1443, allocations: 0 / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.1443, allocations: 0 / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1443, allocations: 4 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1443, allocations: 0 / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.1445, allocations: 159.4 kB / 0.6847 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.1445, allocations: 85 kB / 0.6848 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.1445, allocations: 0 / 0.6848 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.02e-05/0.1446, allocations: 4 kB / 0.6848 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.339e-05/0.1446, allocations: 0 / 0.6848 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.1446, allocations: 3.938 kB / 0.6848 GB, free: 11.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.957e-05/0.1447, allocations: 91.27 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1447, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.1449, allocations: 19.94 kB / 0.6849 GB, free: 11.25 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 (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.000408/0.1453, allocations: 0.7046 MB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.1454, allocations: 19.98 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1454, allocations: 96 / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.224e-05/0.1455, allocations: 16 kB / 0.6856 GB, free: 10.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.1457, allocations: 6.344 kB / 0.6856 GB, free: 10.48 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003739/0.1461, allocations: 176.2 kB / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.1463, allocations: 0.6807 MB / 0.6865 GB, free: 9.562 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.338e-05/0.1463, allocations: 4.609 kB / 0.6865 GB, free: 9.559 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.243e-05/0.1463, allocations: 15.42 kB / 0.6865 GB, free: 9.543 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1463, allocations: 3.938 kB / 0.6865 GB, free: 9.539 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.527/1.674, allocations: 1.503 MB / 0.6879 GB, free: 8.156 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/1.674, allocations: 204.5 kB / 0.6881 GB, free: 7.902 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.597/3.271, allocations: 3.938 kB / 0.6881 GB, free: 7.898 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)