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.00449/0.00449, allocations: 98.98 kB / 15.73 MB, free: 6.031 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.001249/0.001249, allocations: 194 kB / 16.67 MB, free: 5.953 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.398/1.398, 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.002447/0.002447, allocations: 298.2 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 1.193/1.193, allocations: 178.6 MB / 0.5074 GB, free: 12.69 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002717/0.002717, allocations: 104.3 kB / 0.6944 GB, free: 15.12 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.393/0.3958, allocations: 89.12 MB / 0.7814 GB, free: 1.176 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001554/0.3973, allocations: 0.5973 MB / 0.782 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001131/0.3985, allocations: 1.1 MB / 0.783 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.749e-05/0.3985, allocations: 0 / 0.783 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.3986, allocations: 1.406 kB / 0.783 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000221/0.3988, allocations: 26.61 kB / 0.7831 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 3.106e-06/0.3988, allocations: 3.938 kB / 0.7831 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.626e-05/0.3989, allocations: 2.5 kB / 0.7831 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.037e-05/0.3989, allocations: 5.469 kB / 0.7831 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.497e-05/0.3989, allocations: 3.938 kB / 0.7831 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.2e-05/0.3989, allocations: 5.328 kB / 0.7831 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.399, allocations: 0 / 0.7831 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.3991, allocations: 21.08 kB / 0.7831 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.52e-06/0.3991, allocations: 0 / 0.7831 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.3991, allocations: 9.031 kB / 0.7831 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.828e-05/0.3992, allocations: 16.89 kB / 0.7831 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3992, allocations: 0 / 0.7831 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3992, allocations: 0 / 0.7831 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.79e-06/0.3992, allocations: 1.188 kB / 0.7831 GB, free: 15.78 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.0003084/0.3995, allocations: 321.9 kB / 0.7834 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3996, allocations: 9.5 kB / 0.7835 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.695e-05/0.3996, allocations: 32.22 kB / 0.7835 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.011e-05/0.3996, allocations: 0.9375 kB / 0.7835 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.3997, allocations: 165.4 kB / 0.7836 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.3998, allocations: 1.781 kB / 0.7836 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.3998, allocations: 9.703 kB / 0.7837 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.019e-05/0.3999, allocations: 37.42 kB / 0.7837 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3999, allocations: 0 / 0.7837 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.3999, allocations: 4 kB / 0.7837 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.3999, allocations: 1.281 kB / 0.7837 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.822e-05/0.4, allocations: 7.703 kB / 0.7837 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.4001, allocations: 152.3 kB / 0.7838 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.4003, allocations: 35.08 kB / 0.7839 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.989e-05/0.4003, allocations: 7.109 kB / 0.7839 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.4005, allocations: 84.72 kB / 0.784 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.4005, allocations: 39.91 kB / 0.784 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.011e-06/0.4005, allocations: 0 / 0.784 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.004196/0.4047, allocations: 0.5682 MB / 0.7846 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.4048, allocations: 56.41 kB / 0.7846 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.3e-05/0.4048, allocations: 91.23 kB / 0.7847 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.4049, allocations: 29.7 kB / 0.7847 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.312e-05/0.4049, allocations: 84.14 kB / 0.7848 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.405, allocations: 18.44 kB / 0.7848 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.734e-05/0.405, allocations: 18.25 kB / 0.7848 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.4052, allocations: 312.2 kB / 0.7851 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006075/0.4058, allocations: 86.73 kB / 0.7852 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006104/0.4064, allocations: 103.4 kB / 0.7853 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.4076, allocations: 194.4 kB / 0.7855 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.4076, allocations: 1.375 kB / 0.7855 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001293/0.4089, allocations: 213.3 kB / 0.7857 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.4089, allocations: 9.375 kB / 0.7857 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.409, allocations: 5.203 kB / 0.7857 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.409, allocations: 1.406 kB / 0.7857 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/0.4094, allocations: 49.69 kB / 0.7858 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.4094, allocations: 0.9688 kB / 0.7858 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.4098, allocations: 42.89 kB / 0.7858 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.4098, allocations: 10.38 kB / 0.7858 GB, free: 13.68 MB / 0.5606 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 9.537e-05/0.4099, allocations: 108.2 kB / 0.7859 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.4099, allocations: 9.469 kB / 0.7859 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.4113, allocations: 238.6 kB / 0.7862 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4113, allocations: 1.281 kB / 0.7862 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4113, allocations: 0 / 0.7862 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.4114, allocations: 3.984 kB / 0.7862 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/0.4129, allocations: 458.4 kB / 0.7866 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4129, allocations: 1.094 kB / 0.7866 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003881/0.4133, allocations: 48.28 kB / 0.7867 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4134, allocations: 1.094 kB / 0.7867 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.4134, allocations: 5.125 kB / 0.7867 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.4134, allocations: 3.984 kB / 0.7867 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4134, allocations: 1.156 kB / 0.7867 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.4147, allocations: 306.2 kB / 0.787 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.066e-05/0.4148, allocations: 77.11 kB / 0.787 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.4148, allocations: 5.094 kB / 0.787 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.4152, allocations: 42.72 kB / 0.7871 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/0.4152, allocations: 9.312 kB / 0.7871 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.4152, allocations: 2.688 kB / 0.7871 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.673e-05/0.4152, allocations: 75.28 kB / 0.7872 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4152, allocations: 0 / 0.7872 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002518/0.4155, allocations: 13.19 kB / 0.7872 GB, free: 12.68 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 (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.00175/0.4173, allocations: 0.8508 MB / 0.788 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001278/0.4185, allocations: 178 kB / 0.7882 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4186, allocations: 0 / 0.7882 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006085/0.4192, allocations: 96.14 kB / 0.7883 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.4194, allocations: 9.328 kB / 0.7883 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.4207, allocations: 236.2 kB / 0.7885 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.421, allocations: 0.6768 MB / 0.7892 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001788/0.4212, allocations: 29.31 kB / 0.7892 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.951e-05/0.4213, allocations: 9.562 kB / 0.7892 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.4213, allocations: 4 kB / 0.7892 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.4441, allocations: 1.653 MB / 0.7908 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.355, allocations: 7.812 kB / 0.7908 GB, free: 10.07 MB / 0.5606 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)