Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_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.005237/0.005237, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001147/0.001147, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00224/0.00224, allocations: 274.7 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9435/0.9435, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 95.86 kB / 0.681 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4323/0.4342, allocations: 86.98 MB / 0.7659 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002724/0.437, allocations: 1.426 MB / 0.7673 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008057/0.4378, allocations: 469.6 kB / 0.7678 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.766e-05/0.4379, allocations: 0 / 0.7678 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.675e-05/0.4379, allocations: 7.922 kB / 0.7678 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.873e-05/0.438, allocations: 3.938 kB / 0.7678 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.4382, allocations: 19.97 kB / 0.7678 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.774e-05/0.4383, allocations: 27.86 kB / 0.7678 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.2e-05/0.4384, allocations: 4 kB / 0.7678 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.644e-05/0.4384, allocations: 11.94 kB / 0.7678 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.85e-05/0.4385, allocations: 23.86 kB / 0.7678 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.4385, allocations: 4 kB / 0.7679 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.187e-05/0.4386, allocations: 19.98 kB / 0.7679 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.45e-05/0.4386, allocations: 11.97 kB / 0.7679 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.52e-05/0.4386, allocations: 11.94 kB / 0.7679 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.4388, allocations: 27.7 kB / 0.7679 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.4388, allocations: 0 / 0.7679 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.032e-06/0.4388, allocations: 0 / 0.7679 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.4388, allocations: 0 / 0.7679 GB, free: 1.77 MB / 0.5294 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.0004241/0.4392, allocations: 356.6 kB / 0.7683 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.4393, allocations: 11.97 kB / 0.7683 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.438e-05/0.4393, allocations: 34.75 kB / 0.7683 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.209e-05/0.4393, allocations: 0.9375 kB / 0.7683 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.4394, allocations: 172.3 kB / 0.7685 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.4395, allocations: 4.375 kB / 0.7685 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-06/0.4395, allocations: 384 / 0.7685 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.4397, allocations: 53.8 kB / 0.7685 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4397, allocations: 0 / 0.7685 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.4397, allocations: 4 kB / 0.7685 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.4397, allocations: 0 / 0.7685 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.4399, allocations: 35.95 kB / 0.7686 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.4402, allocations: 252.8 kB / 0.7688 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.4403, allocations: 38.55 kB / 0.7688 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.868e-05/0.4404, allocations: 28.91 kB / 0.7689 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.4406, allocations: 81.05 kB / 0.7689 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.4406, allocations: 34.56 kB / 0.769 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.293e-06/0.4406, allocations: 0 / 0.769 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.000362/0.441, allocations: 85.58 kB / 0.7691 GB, free: 420 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.441, allocations: 55.53 kB / 0.7691 GB, free: 352 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.931e-05/0.4411, allocations: 101.8 kB / 0.7692 GB, free: 240 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.4411, allocations: 25.7 kB / 0.7692 GB, free: 208 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.899e-05/0.4412, allocations: 88.09 kB / 0.7693 GB, free: 116 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.4412, allocations: 4 kB / 0.7693 GB, free: 112 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.4413, allocations: 17.7 kB / 0.7693 GB, free: 88 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.4414, allocations: 314.8 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.589e-05/0.4415, allocations: 19.98 kB / 0.7697 GB, free: 15.75 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.303e-05/0.4416, allocations: 15.98 kB / 0.7697 GB, free: 15.73 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.4417, allocations: 40.81 kB / 0.7697 GB, free: 15.69 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4417, allocations: 0 / 0.7697 GB, free: 15.69 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001933/0.4419, allocations: 77.61 kB / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4419, allocations: 11.98 kB / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.442, allocations: 0 / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.442, allocations: 3.938 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.639e-05/0.4421, allocations: 4 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.4421, allocations: 0 / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.676e-05/0.4421, allocations: 7.984 kB / 0.7698 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.4421, allocations: 4 kB / 0.7698 GB, free: 15.58 MB / 0.545 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 6.562e-05/0.4422, allocations: 109.8 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.4422, allocations: 8 kB / 0.7699 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002323/0.4425, allocations: 76.7 kB / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4425, allocations: 0 / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.4425, allocations: 0 / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.4425, allocations: 0 / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.4427, allocations: 165.5 kB / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4427, allocations: 0 / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.666e-05/0.4427, allocations: 8.266 kB / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.4427, allocations: 4 kB / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.4428, allocations: 4 kB / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.4428, allocations: 4 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4428, allocations: 3.938 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.443, allocations: 167.4 kB / 0.7703 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.265e-05/0.4431, allocations: 81.14 kB / 0.7704 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.4431, allocations: 0 / 0.7704 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.49e-05/0.4432, allocations: 11.92 kB / 0.7704 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.104e-05/0.4432, allocations: 4 kB / 0.7704 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.4432, allocations: 4 kB / 0.7704 GB, free: 14.84 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.031e-05/0.4433, allocations: 83.27 kB / 0.7705 GB, free: 14.76 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4433, allocations: 0 / 0.7705 GB, free: 14.76 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002212/0.4435, allocations: 4 kB / 0.7705 GB, free: 14.76 MB / 0.545 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.0005876/0.4441, allocations: 0.6968 MB / 0.7712 GB, free: 14.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.4443, allocations: 43.89 kB / 0.7712 GB, free: 13.99 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4443, allocations: 4.094 kB / 0.7713 GB, free: 13.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.934e-05/0.4444, allocations: 15.98 kB / 0.7713 GB, free: 13.97 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.4447, allocations: 10.5 kB / 0.7713 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004084/0.4451, allocations: 131.2 kB / 0.7714 GB, free: 13.79 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.4454, allocations: 0.6806 MB / 0.7721 GB, free: 13.08 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.688e-05/0.4454, allocations: 0 / 0.7721 GB, free: 13.08 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.4455, allocations: 19.48 kB / 0.7721 GB, free: 13.06 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.4455, allocations: 3.938 kB / 0.7721 GB, free: 13.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.465, allocations: 1.434 MB / 0.7735 GB, free: 11.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.387/7.852, allocations: 15.69 kB / 0.7735 GB, free: 11.72 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside_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_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)