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.007561/0.007561, allocations: 103.7 kB / 15.74 MB, free: 6.043 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.002013/0.002013, allocations: 201.8 kB / 16.68 MB, free: 5.965 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002426/0.002426, allocations: 286.1 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5074 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003997/0.003997, allocations: 99.83 kB / 0.6943 GB, free: 3.582 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4955/0.4995, allocations: 89.13 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.003059/0.5026, allocations: 1.472 MB / 0.7828 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001067/0.5037, allocations: 0.5594 MB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.134e-05/0.5038, allocations: 0 / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.637e-05/0.5038, allocations: 0.5625 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.38e-05/0.5039, allocations: 9.641 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.5042, allocations: 57.52 kB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.685e-05/0.5043, allocations: 25.77 kB / 0.7834 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.762e-05/0.5044, allocations: 5.734 kB / 0.7834 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.514e-05/0.5045, allocations: 20.02 kB / 0.7834 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.227e-05/0.5045, allocations: 14.22 kB / 0.7835 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.5046, allocations: 2.719 kB / 0.7835 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.5047, allocations: 57.8 kB / 0.7835 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.383e-05/0.5047, allocations: 1.359 kB / 0.7835 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.354e-05/0.5048, allocations: 20.73 kB / 0.7835 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.5049, allocations: 62.95 kB / 0.7836 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.505, allocations: 1.438 kB / 0.7836 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.483e-06/0.505, allocations: 0 / 0.7836 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.505, allocations: 0 / 0.7836 GB, free: 12.31 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004981/0.5055, allocations: 352 kB / 0.7839 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.5055, allocations: 9.375 kB / 0.7839 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.792e-05/0.5056, allocations: 36.97 kB / 0.784 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.53e-05/0.5056, allocations: 2.344 kB / 0.784 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.5058, allocations: 175.8 kB / 0.7841 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.5058, allocations: 5.594 kB / 0.7842 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.5058, allocations: 1.938 kB / 0.7842 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.506, allocations: 47.2 kB / 0.7842 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.506, allocations: 0 / 0.7842 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.506, allocations: 0 / 0.7842 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.506, allocations: 1.344 kB / 0.7842 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.028e-05/0.5061, allocations: 23.53 kB / 0.7842 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003578/0.5065, allocations: 258.4 kB / 0.7845 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.261e-05/0.5066, allocations: 30.31 kB / 0.7845 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.5066, allocations: 17.33 kB / 0.7845 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008845/0.5075, allocations: 479.3 kB / 0.785 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.5076, allocations: 35.69 kB / 0.785 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.5076, allocations: 3.938 kB / 0.785 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0002548/0.5078, allocations: 58.64 kB / 0.7851 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.5079, allocations: 60.75 kB / 0.7851 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.353e-05/0.508, allocations: 110.8 kB / 0.7852 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.508, allocations: 29.83 kB / 0.7853 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.006e-05/0.5081, allocations: 87.69 kB / 0.7853 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.5081, allocations: 10.05 kB / 0.7854 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.5081, allocations: 11.69 kB / 0.7854 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5083, allocations: 318.1 kB / 0.7857 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.696e-05/0.5083, allocations: 11.53 kB / 0.7857 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.604e-05/0.5084, allocations: 7.844 kB / 0.7857 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.831e-05/0.5085, allocations: 33.11 kB / 0.7857 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5085, allocations: 1.156 kB / 0.7857 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001543/0.5087, allocations: 56.19 kB / 0.7858 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.5087, allocations: 4.156 kB / 0.7858 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.5087, allocations: 0.7031 kB / 0.7858 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.5087, allocations: 0.9375 kB / 0.7858 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.912e-05/0.5088, allocations: 9.891 kB / 0.7858 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.5088, allocations: 2.328 kB / 0.7858 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.186e-05/0.5088, allocations: 6.297 kB / 0.7858 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.421e-06/0.5088, allocations: 0 / 0.7858 GB, free: 10.05 MB / 0.5606 GB 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 8.026e-05/0.5089, allocations: 113.2 kB / 0.7859 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.509, allocations: 2.016 kB / 0.7859 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.5091, allocations: 65.12 kB / 0.786 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.5091, allocations: 0.6094 kB / 0.786 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.5092, allocations: 1.312 kB / 0.786 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.5092, allocations: 4.031 kB / 0.786 GB, free: 9.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.5094, allocations: 162.5 kB / 0.7861 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.5094, allocations: 0 / 0.7861 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.502e-05/0.5094, allocations: 11.16 kB / 0.7861 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5094, allocations: 0 / 0.7861 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.5095, allocations: 4.703 kB / 0.7861 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5095, allocations: 1.438 kB / 0.7861 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5095, allocations: 0.8906 kB / 0.7861 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.5097, allocations: 150.6 kB / 0.7863 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.5097, allocations: 79.06 kB / 0.7864 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.5097, allocations: 1.219 kB / 0.7864 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.455e-05/0.5098, allocations: 2.391 kB / 0.7864 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.934e-05/0.5098, allocations: 11.98 kB / 0.7864 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.5098, allocations: 0 / 0.7864 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.04e-05/0.5099, allocations: 84 kB / 0.7865 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5099, allocations: 0 / 0.7865 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002516/0.5102, allocations: 29.78 kB / 0.7865 GB, free: 9.348 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 (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.0005708/0.5107, allocations: 0.701 MB / 0.7872 GB, free: 8.672 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001462/0.5109, allocations: 23.5 kB / 0.7872 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5109, allocations: 4.094 kB / 0.7872 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.014e-05/0.511, allocations: 13.7 kB / 0.7872 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.5112, allocations: 6.047 kB / 0.7872 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004578/0.5117, allocations: 152.5 kB / 0.7874 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.512, allocations: 0.6781 MB / 0.788 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.491e-05/0.512, allocations: 1.781 kB / 0.788 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.5121, allocations: 14.27 kB / 0.788 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of SimCode: time 2.7e-07/0.5121, allocations: 4.062 kB / 0.788 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02219/0.5343, allocations: 1.634 MB / 0.7896 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.457, allocations: 5.328 kB / 0.7896 GB, free: 7.379 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit_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_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)