Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside",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.001486/0.001486, allocations: 102.2 kB / 15.06 MB, free: 1.098 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.002001/0.002001, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.206/3.206, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.251/3.251, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 15.09 kB / 0.6737 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5281/0.5294, allocations: 116.3 MB / 0.7872 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002807/0.5323, allocations: 1.144 MB / 0.7883 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001159/0.5335, allocations: 482.2 kB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.059e-05/0.5336, allocations: 0 / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.985e-05/0.5336, allocations: 0 / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.5337, allocations: 19.97 kB / 0.7888 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002781/0.534, allocations: 15.92 kB / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.823e-05/0.5341, allocations: 15.98 kB / 0.7889 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.5342, allocations: 0 / 0.7889 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.359e-05/0.5343, allocations: 11.98 kB / 0.7889 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.261e-05/0.5344, allocations: 7.938 kB / 0.7889 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.5344, allocations: 0 / 0.7889 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.443e-05/0.5345, allocations: 23.95 kB / 0.7889 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.273e-05/0.5346, allocations: 4 kB / 0.7889 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.644e-05/0.5346, allocations: 37.64 kB / 0.7889 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.5347, allocations: 19.97 kB / 0.789 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.5347, allocations: 0 / 0.789 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.975e-06/0.5348, allocations: 0 / 0.789 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.5348, allocations: 0 / 0.789 GB, free: 10.11 MB / 0.6075 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.0005756/0.5354, allocations: 343.5 kB / 0.7893 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.01e-05/0.5354, allocations: 8.031 kB / 0.7893 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.5355, allocations: 38.5 kB / 0.7893 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.5356, allocations: 4 kB / 0.7893 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.5357, allocations: 167 kB / 0.7895 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.5358, allocations: 4 kB / 0.7895 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.5358, allocations: 0 / 0.7895 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.5361, allocations: 49.69 kB / 0.7895 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.5361, allocations: 0 / 0.7895 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.5362, allocations: 7.922 kB / 0.7896 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.5362, allocations: 4 kB / 0.7896 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000267/0.5364, allocations: 39.97 kB / 0.7896 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004533/0.5369, allocations: 268.8 kB / 0.7898 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.5371, allocations: 42.56 kB / 0.7899 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001648/0.5373, allocations: 85.16 kB / 0.79 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.5373, allocations: 34.5 kB / 0.79 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.593e-06/0.5373, allocations: 0 / 0.79 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0005448/0.5379, allocations: 101.6 kB / 0.7901 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.538, allocations: 51.41 kB / 0.7901 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.5381, allocations: 101.8 kB / 0.7902 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.5381, allocations: 29.83 kB / 0.7903 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.5382, allocations: 84.14 kB / 0.7904 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.084e-05/0.5383, allocations: 19.81 kB / 0.7904 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.5383, allocations: 0 / 0.7904 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5384, allocations: 310.8 kB / 0.7907 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.5386, allocations: 23.98 kB / 0.7907 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.5387, allocations: 19.98 kB / 0.7907 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.5388, allocations: 27.97 kB / 0.7907 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.5389, allocations: 3.938 kB / 0.7907 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003188/0.5392, allocations: 73.73 kB / 0.7908 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.5392, allocations: 8 kB / 0.7908 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.5392, allocations: 0 / 0.7908 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.413e-05/0.5393, allocations: 0 / 0.7908 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.5394, allocations: 11.98 kB / 0.7908 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.5395, allocations: 0 / 0.7908 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.337e-05/0.5395, allocations: 16.02 kB / 0.7908 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.5396, allocations: 4.203 kB / 0.7909 GB, free: 7.922 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.5397, allocations: 109.8 kB / 0.791 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.232e-05/0.5398, allocations: 8 kB / 0.791 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000392/0.5402, allocations: 88.62 kB / 0.791 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.5402, allocations: 4 kB / 0.7911 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.5402, allocations: 0 / 0.7911 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/0.5402, allocations: 3.984 kB / 0.7911 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.5405, allocations: 157.6 kB / 0.7912 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.5406, allocations: 0 / 0.7912 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.418e-05/0.5407, allocations: 11.98 kB / 0.7912 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.5407, allocations: 0 / 0.7912 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.5407, allocations: 8.031 kB / 0.7912 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.5407, allocations: 0 / 0.7912 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5407, allocations: 0 / 0.7912 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.5411, allocations: 179.4 kB / 0.7914 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.21e-05/0.5412, allocations: 77.11 kB / 0.7915 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.5413, allocations: 4 kB / 0.7915 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.5414, allocations: 7.984 kB / 0.7915 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.088e-05/0.5415, allocations: 11.94 kB / 0.7915 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.5415, allocations: 0 / 0.7915 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.228e-05/0.5416, allocations: 83.27 kB / 0.7916 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.21e-07/0.5416, allocations: 0 / 0.7916 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000462/0.542, allocations: 8.031 kB / 0.7916 GB, free: 7.074 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009822/0.543, allocations: 0.7086 MB / 0.7923 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003972/0.5435, allocations: 51.91 kB / 0.7923 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.5435, allocations: 0 / 0.7923 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.5436, allocations: 28.03 kB / 0.7923 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.544, allocations: 7.094 kB / 0.7924 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000583/0.5446, allocations: 150.2 kB / 0.7925 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.5449, allocations: 0.677 MB / 0.7932 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.909e-05/0.545, allocations: 4.062 kB / 0.7932 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.838e-05/0.545, allocations: 11.44 kB / 0.7932 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of SimCode: time 3.01e-07/0.545, allocations: 0 / 0.7932 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.563, allocations: 1.142 MB / 0.7943 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003095/0.5634, allocations: 180.3 kB / 0.7945 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.161/3.725, allocations: 64 / 0.7945 GB, free: 4.094 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_8_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) Environment - environmentSimulation: