Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.007185/0.007185, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001619/0.001618, 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 291 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9677/0.9677, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 95.84 kB / 0.681 GB, free: 7.406 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4486/0.4504, allocations: 86.97 MB / 0.766 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001727/0.4522, allocations: 0.5822 MB / 0.7665 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001425/0.4536, allocations: 1.104 MB / 0.7676 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.105e-05/0.4537, allocations: 0 / 0.7676 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.638e-05/0.4537, allocations: 7.875 kB / 0.7676 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002731/0.454, allocations: 23.92 kB / 0.7676 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 3.586e-06/0.454, allocations: 4 kB / 0.7676 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.577e-05/0.454, allocations: 4 kB / 0.7676 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.81e-05/0.4541, allocations: 3.984 kB / 0.7676 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.786e-05/0.4541, allocations: 3.938 kB / 0.7676 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.444e-05/0.4542, allocations: 4 kB / 0.7676 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.4542, allocations: 0 / 0.7676 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.4543, allocations: 23.92 kB / 0.7677 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.847e-06/0.4543, allocations: 3.984 kB / 0.7677 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.415e-05/0.4543, allocations: 0 / 0.7677 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.757e-05/0.4544, allocations: 19.72 kB / 0.7677 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.4544, allocations: 0 / 0.7677 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4544, allocations: 4 kB / 0.7677 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.4545, allocations: 0 / 0.7677 GB, free: 2.012 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.0003022/0.4548, allocations: 319.1 kB / 0.768 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.4548, allocations: 8.031 kB / 0.768 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.565e-05/0.4548, allocations: 34.75 kB / 0.768 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.069e-05/0.4549, allocations: 0.9375 kB / 0.768 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.282e-05/0.455, allocations: 164.3 kB / 0.7682 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.455, allocations: 4.375 kB / 0.7682 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.455, allocations: 4.375 kB / 0.7682 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.596e-05/0.4551, allocations: 41.81 kB / 0.7682 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.4552, allocations: 7.953 kB / 0.7683 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.4552, allocations: 0 / 0.7683 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.4552, allocations: 0 / 0.7683 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.337e-05/0.4552, allocations: 7.984 kB / 0.7683 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001457/0.4554, allocations: 145.7 kB / 0.7684 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.4556, allocations: 38.55 kB / 0.7684 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.247e-05/0.4556, allocations: 12.86 kB / 0.7685 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001568/0.4558, allocations: 85.19 kB / 0.7685 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.4558, allocations: 38.5 kB / 0.7686 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.383e-06/0.4558, allocations: 0 / 0.7686 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of matching and sorting (n=5): time 0.004187/0.46, allocations: 0.5676 MB / 0.7691 GB, free: 368 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.4601, allocations: 55.41 kB / 0.7692 GB, free: 300 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.059e-05/0.4601, allocations: 93.86 kB / 0.7693 GB, free: 196 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.4602, allocations: 25.7 kB / 0.7693 GB, free: 164 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.768e-05/0.4602, allocations: 80.14 kB / 0.7694 GB, free: 80 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.4602, allocations: 21.48 kB / 0.7694 GB, free: 60 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.632e-05/0.4603, allocations: 21.7 kB / 0.7694 GB, free: 32 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4604, allocations: 310.8 kB / 0.7697 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.461, allocations: 91.89 kB / 0.7698 GB, free: 15.63 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006232/0.4617, allocations: 108.3 kB / 0.7699 GB, free: 15.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.4628, allocations: 182.5 kB / 0.7701 GB, free: 15.33 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.4628, allocations: 0 / 0.7701 GB, free: 15.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001227/0.4641, allocations: 225.5 kB / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.4641, allocations: 4 kB / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.4641, allocations: 0 / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.4641, allocations: 0 / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003791/0.4645, allocations: 55.94 kB / 0.7703 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.4645, allocations: 0 / 0.7703 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.4649, allocations: 43.97 kB / 0.7704 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.4649, allocations: 0 / 0.7704 GB, free: 15 MB / 0.545 GB 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 (5): * Single equations (assignments): 5 * 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.421e-05/0.465, allocations: 116.2 kB / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.465, allocations: 3.938 kB / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.4663, allocations: 237.5 kB / 0.7707 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.4663, allocations: 0 / 0.7707 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.4663, allocations: 0 / 0.7707 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.4663, allocations: 3.984 kB / 0.7707 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.4678, allocations: 462.6 kB / 0.7712 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.4678, allocations: 8.047 kB / 0.7712 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/0.4682, allocations: 51.97 kB / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.4682, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.4682, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4682, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4683, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.4695, allocations: 315.3 kB / 0.7715 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.4696, allocations: 77.11 kB / 0.7716 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.4696, allocations: 4 kB / 0.7716 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/0.4699, allocations: 35.98 kB / 0.7716 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.599e-05/0.47, allocations: 7.984 kB / 0.7716 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.47, allocations: 4 kB / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.892e-05/0.47, allocations: 75.28 kB / 0.7717 GB, free: 13.52 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.483e-06/0.47, allocations: 0 / 0.7717 GB, free: 13.52 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002565/0.4703, allocations: 15.94 kB / 0.7717 GB, free: 13.51 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 (5): * Single equations (assignments): 5 * 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.001591/0.4719, allocations: 0.8412 MB / 0.7726 GB, free: 12.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001236/0.4731, allocations: 176 kB / 0.7727 GB, free: 12.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.4732, allocations: 4 kB / 0.7727 GB, free: 12.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0005832/0.4737, allocations: 96.02 kB / 0.7728 GB, free: 12.37 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.474, allocations: 0 / 0.7728 GB, free: 12.37 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.4752, allocations: 254.5 kB / 0.7731 GB, free: 12.08 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.4755, allocations: 0.6805 MB / 0.7737 GB, free: 11.37 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000193/0.4757, allocations: 28 kB / 0.7738 GB, free: 11.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/0.4758, allocations: 15.42 kB / 0.7738 GB, free: 11.33 MB / 0.545 GB Notification: Performance of SimCode: time 5.51e-07/0.4758, allocations: 0 / 0.7738 GB, free: 11.33 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.4932, allocations: 1.649 MB / 0.7754 GB, free: 9.836 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.278/7.771, allocations: 10.14 kB / 0.7754 GB, free: 9.828 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)