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.01024/0.01024, allocations: 97.84 kB / 15.73 MB, free: 6.043 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.002243/0.002243, allocations: 197.1 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002656/0.002656, allocations: 283.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.054/1.054, allocations: 178.6 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004126/0.004126, allocations: 99.84 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5512/0.5554, allocations: 89.15 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002545/0.558, allocations: 1.443 MB / 0.7828 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007767/0.5588, allocations: 465.8 kB / 0.7832 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.092e-05/0.5588, allocations: 0 / 0.7832 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.489e-05/0.5588, allocations: 4 kB / 0.7832 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.222e-05/0.5589, allocations: 6.234 kB / 0.7832 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.5591, allocations: 23.66 kB / 0.7832 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.829e-05/0.5592, allocations: 33.14 kB / 0.7833 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.931e-05/0.5593, allocations: 4.781 kB / 0.7833 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.892e-05/0.5593, allocations: 8.484 kB / 0.7833 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.944e-05/0.5594, allocations: 14.28 kB / 0.7833 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.5594, allocations: 2.75 kB / 0.7833 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.94e-05/0.5595, allocations: 18.47 kB / 0.7833 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.317e-05/0.5595, allocations: 9.812 kB / 0.7833 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.314e-05/0.5595, allocations: 11.31 kB / 0.7833 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.5596, allocations: 35.91 kB / 0.7834 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.5596, allocations: 1.781 kB / 0.7834 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5596, allocations: 0 / 0.7834 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.5596, allocations: 0 / 0.7834 GB, free: 12.45 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.0004397/0.5601, allocations: 350.2 kB / 0.7837 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.5601, allocations: 9.219 kB / 0.7837 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.994e-05/0.5602, allocations: 31.27 kB / 0.7837 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.462e-05/0.5602, allocations: 7.75 kB / 0.7837 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.5603, allocations: 167.3 kB / 0.7839 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.5604, allocations: 384 / 0.7839 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-06/0.5604, allocations: 5.484 kB / 0.7839 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.5606, allocations: 53.14 kB / 0.784 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.5606, allocations: 1.125 kB / 0.784 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.5606, allocations: 4 kB / 0.784 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.5606, allocations: 5 kB / 0.784 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.5608, allocations: 36.64 kB / 0.784 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003367/0.5611, allocations: 251.9 kB / 0.7842 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.5613, allocations: 36.45 kB / 0.7843 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.798e-05/0.5614, allocations: 24.56 kB / 0.7843 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/0.5615, allocations: 86.92 kB / 0.7844 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.5615, allocations: 34.5 kB / 0.7844 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 3.076e-06/0.5616, allocations: 1.438 kB / 0.7844 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003583/0.5619, allocations: 84.83 kB / 0.7845 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.562, allocations: 51.41 kB / 0.7846 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.546e-05/0.5621, allocations: 111.6 kB / 0.7847 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.5621, allocations: 25.7 kB / 0.7847 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.392e-05/0.5622, allocations: 86.28 kB / 0.7848 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.5622, allocations: 6.594 kB / 0.7848 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/0.5622, allocations: 15.03 kB / 0.7848 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5624, allocations: 317.8 kB / 0.7851 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.792e-05/0.5625, allocations: 19.22 kB / 0.7851 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.473e-05/0.5625, allocations: 16.94 kB / 0.7851 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.5627, allocations: 41.73 kB / 0.7852 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5627, allocations: 0 / 0.7852 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002034/0.5629, allocations: 72.38 kB / 0.7852 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.5629, allocations: 4.844 kB / 0.7852 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.5629, allocations: 96 / 0.7852 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.563, allocations: 6.062 kB / 0.7852 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.616e-05/0.5631, allocations: 8.5 kB / 0.7853 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.5631, allocations: 0 / 0.7853 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.724e-05/0.5631, allocations: 5.984 kB / 0.7853 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.5631, allocations: 1.656 kB / 0.7853 GB, free: 10.58 MB / 0.5606 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 8.181e-05/0.5632, allocations: 111.8 kB / 0.7854 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.164e-05/0.5632, allocations: 1.344 kB / 0.7854 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002366/0.5635, allocations: 80.8 kB / 0.7854 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.5635, allocations: 1.094 kB / 0.7854 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.5635, allocations: 0 / 0.7854 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5635, allocations: 0.6562 kB / 0.7854 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.5637, allocations: 160.8 kB / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5637, allocations: 0 / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-05/0.5638, allocations: 9.094 kB / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.5638, allocations: 1.891 kB / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.5638, allocations: 0 / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.5638, allocations: 4.031 kB / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5638, allocations: 2.062 kB / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002532/0.5641, allocations: 170.9 kB / 0.7858 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.5641, allocations: 77.62 kB / 0.7859 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.5641, allocations: 5.984 kB / 0.7859 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.58e-05/0.5642, allocations: 10.52 kB / 0.7859 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.48e-05/0.5643, allocations: 2.141 kB / 0.7859 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.5643, allocations: 0 / 0.7859 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.682e-05/0.5643, allocations: 88.98 kB / 0.786 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5643, allocations: 1.375 kB / 0.786 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002227/0.5645, allocations: 9.391 kB / 0.786 GB, free: 9.883 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 (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.0006153/0.5652, allocations: 0.7017 MB / 0.7867 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002081/0.5654, allocations: 36.66 kB / 0.7867 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5654, allocations: 0 / 0.7867 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.572e-05/0.5655, allocations: 24.58 kB / 0.7867 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.5658, allocations: 7.734 kB / 0.7867 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003904/0.5662, allocations: 136.1 kB / 0.7868 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.5665, allocations: 0.6756 MB / 0.7875 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.789e-05/0.5665, allocations: 6.906 kB / 0.7875 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.83e-05/0.5666, allocations: 9.469 kB / 0.7875 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of SimCode: time 2.164e-06/0.5666, allocations: 0 / 0.7875 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.5881, allocations: 1.442 MB / 0.7889 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.814/8.402, allocations: 9.562 kB / 0.7889 GB, free: 7.938 MB / 0.5606 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)