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.005598/0.005598, allocations: 101.9 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.00134/0.00134, allocations: 188.8 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002466/0.002466, allocations: 289.3 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 1.002/1.002, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002643/0.002643, allocations: 95.86 kB / 0.681 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4535/0.4562, allocations: 86.97 MB / 0.766 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001653/0.4579, allocations: 0.586 MB / 0.7665 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.4592, allocations: 1.104 MB / 0.7676 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.635e-05/0.4593, allocations: 0 / 0.7676 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.829e-05/0.4593, allocations: 7.938 kB / 0.7676 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.4595, allocations: 19.92 kB / 0.7676 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 3.637e-06/0.4596, allocations: 0 / 0.7676 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.11e-05/0.4596, allocations: 7.984 kB / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.363e-05/0.4596, allocations: 0 / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.64e-05/0.4597, allocations: 3.938 kB / 0.7676 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.128e-05/0.4597, allocations: 4 kB / 0.7676 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.345e-06/0.4597, allocations: 3.984 kB / 0.7676 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.4598, allocations: 23.92 kB / 0.7677 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.68e-06/0.4598, allocations: 0 / 0.7677 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.174e-05/0.4598, allocations: 4 kB / 0.7677 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.195e-05/0.4599, allocations: 23.7 kB / 0.7677 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.4599, allocations: 3.938 kB / 0.7677 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.413e-06/0.46, allocations: 0 / 0.7677 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.46, allocations: 0 / 0.7677 GB, free: 2.051 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.0003027/0.4603, allocations: 319.1 kB / 0.768 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.4603, allocations: 8.031 kB / 0.768 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.127e-05/0.4604, allocations: 34.75 kB / 0.768 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.102e-05/0.4604, allocations: 0.9375 kB / 0.768 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.4605, allocations: 164.3 kB / 0.7682 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.4605, allocations: 8.359 kB / 0.7682 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.4605, allocations: 4.375 kB / 0.7682 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.874e-05/0.4606, allocations: 33.83 kB / 0.7682 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.4606, allocations: 7.953 kB / 0.7683 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.4607, allocations: 0 / 0.7683 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.4607, allocations: 0 / 0.7683 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.531e-05/0.4607, allocations: 7.984 kB / 0.7683 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.4609, allocations: 145.7 kB / 0.7684 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.461, allocations: 42.55 kB / 0.7684 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.046e-05/0.4611, allocations: 8.859 kB / 0.7685 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.4612, allocations: 85.19 kB / 0.7685 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.4613, allocations: 38.5 kB / 0.7686 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.4613, allocations: 0 / 0.7686 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of matching and sorting (n=5): time 0.00409/0.4654, allocations: 0.5638 MB / 0.7691 GB, free: 416 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.4654, allocations: 59.41 kB / 0.7692 GB, free: 344 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.82e-05/0.4655, allocations: 89.86 kB / 0.7693 GB, free: 244 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.4655, allocations: 25.7 kB / 0.7693 GB, free: 212 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.269e-05/0.4656, allocations: 84.08 kB / 0.7694 GB, free: 124 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.279e-05/0.4656, allocations: 21.53 kB / 0.7694 GB, free: 104 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.183e-05/0.4657, allocations: 17.72 kB / 0.7694 GB, free: 80 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4658, allocations: 314.8 kB / 0.7697 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005774/0.4664, allocations: 83.95 kB / 0.7698 GB, free: 15.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000597/0.467, allocations: 112.9 kB / 0.7699 GB, free: 15.56 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.4682, allocations: 190.5 kB / 0.7701 GB, free: 15.37 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.4682, allocations: 0 / 0.7701 GB, free: 15.37 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00123/0.4694, allocations: 217.5 kB / 0.7703 GB, free: 15.15 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.4694, allocations: 4 kB / 0.7703 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.4695, allocations: 3.984 kB / 0.7703 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.4695, allocations: 0 / 0.7703 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003891/0.4699, allocations: 55.94 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.4699, allocations: 3.984 kB / 0.7703 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.4702, allocations: 39.98 kB / 0.7704 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.4702, allocations: 0 / 0.7704 GB, free: 15.04 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 0.0001002/0.4704, allocations: 120.2 kB / 0.7705 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.4704, allocations: 11.86 kB / 0.7705 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.4717, allocations: 237.1 kB / 0.7707 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.4718, allocations: 0 / 0.7707 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4718, allocations: 0 / 0.7707 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.4718, allocations: 0 / 0.7707 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.4733, allocations: 462.3 kB / 0.7712 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.4733, allocations: 0 / 0.7712 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.4737, allocations: 51.97 kB / 0.7712 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4737, allocations: 0 / 0.7712 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.4737, allocations: 0 / 0.7712 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.4737, allocations: 0 / 0.7712 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4737, allocations: 0 / 0.7712 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.475, allocations: 319.3 kB / 0.7715 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.139e-05/0.4751, allocations: 77.3 kB / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.4751, allocations: 4 kB / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003863/0.4755, allocations: 43.97 kB / 0.7717 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.4755, allocations: 0 / 0.7717 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.4756, allocations: 4 kB / 0.7717 GB, free: 13.64 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.933e-05/0.4756, allocations: 75.28 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4756, allocations: 3.938 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002523/0.4759, allocations: 12 kB / 0.7717 GB, free: 13.55 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.001687/0.4776, allocations: 0.8451 MB / 0.7726 GB, free: 12.67 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001354/0.4789, allocations: 171.9 kB / 0.7727 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.4789, allocations: 4.188 kB / 0.7727 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0009362/0.4799, allocations: 95.89 kB / 0.7728 GB, free: 12.41 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.4802, allocations: 0.5625 kB / 0.7728 GB, free: 12.41 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.4821, allocations: 250.5 kB / 0.7731 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.4825, allocations: 0.6767 MB / 0.7737 GB, free: 11.42 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002822/0.4828, allocations: 31.98 kB / 0.7738 GB, free: 11.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.4829, allocations: 11.44 kB / 0.7738 GB, free: 11.38 MB / 0.545 GB Notification: Performance of SimCode: time 5.31e-07/0.4829, allocations: 0 / 0.7738 GB, free: 11.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.5118, allocations: 1.652 MB / 0.7754 GB, free: 9.879 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.584/8.096, allocations: 15.48 kB / 0.7754 GB, free: 9.867 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)