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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 106.4 kB / 16.45 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 220.2 kB / 19.43 MB, free: 3.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 285.2 kB / 309.1 MB, free: 3.961 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.202/1.202, allocations: 180.9 MB / 0.5333 GB, free: 13.66 MB / 382.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002771/0.002771, allocations: 110 kB / 0.7343 GB, free: 28.58 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1837, allocations: 95.34 MB / 0.8274 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001862/0.1856, allocations: 0.5979 MB / 0.828 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001616/0.1872, allocations: 1.165 MB / 0.8291 GB, free: 8.148 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.704e-05/0.1873, allocations: 4 kB / 0.8291 GB, free: 8.145 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.1873, allocations: 0 / 0.8291 GB, free: 8.145 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002602/0.1875, allocations: 19.91 kB / 0.8291 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 4.468e-06/0.1875, allocations: 0 / 0.8291 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.631e-05/0.1876, allocations: 11.94 kB / 0.8291 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.684e-05/0.1876, allocations: 0 / 0.8291 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.522e-05/0.1876, allocations: 4 kB / 0.8292 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.055e-05/0.1877, allocations: 0 / 0.8292 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.632e-06/0.1877, allocations: 0 / 0.8292 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.1878, allocations: 27.91 kB / 0.8292 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.288e-06/0.1878, allocations: 7.922 kB / 0.8292 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.565e-05/0.1878, allocations: 0 / 0.8292 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 7.486e-05/0.1879, allocations: 12.27 kB / 0.8292 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1879, allocations: 0 / 0.8292 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.623e-06/0.1879, allocations: 0 / 0.8292 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.1879, allocations: 4 kB / 0.8292 GB, free: 8.059 MB / 0.5762 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.000292/0.1882, allocations: 315.5 kB / 0.8295 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1882, allocations: 8.031 kB / 0.8295 GB, free: 7.695 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.242e-05/0.1882, allocations: 38.73 kB / 0.8295 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.104e-05/0.1883, allocations: 4.875 kB / 0.8296 GB, free: 7.645 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.1884, allocations: 164.3 kB / 0.8297 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.1884, allocations: 4.375 kB / 0.8297 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.1884, allocations: 8.312 kB / 0.8297 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.1886, allocations: 41.75 kB / 0.8298 GB, free: 7.387 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1886, allocations: 4 kB / 0.8298 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.1886, allocations: 0 / 0.8298 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1886, allocations: 3.984 kB / 0.8298 GB, free: 7.379 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.627e-05/0.1887, allocations: 8 kB / 0.8298 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.1888, allocations: 149.7 kB / 0.8299 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.189, allocations: 30.61 kB / 0.8299 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.66e-05/0.189, allocations: 16.8 kB / 0.83 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00015/0.1892, allocations: 85.11 kB / 0.83 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.1892, allocations: 42.5 kB / 0.8301 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.1892, allocations: 0 / 0.8301 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of matching and sorting (n=5): time 0.004341/0.1935, allocations: 0.5677 MB / 0.8306 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.1936, allocations: 55.41 kB / 0.8307 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.389e-05/0.1936, allocations: 93.84 kB / 0.8308 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.1937, allocations: 29.7 kB / 0.8308 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.32e-05/0.1937, allocations: 84.12 kB / 0.8309 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.178e-05/0.1937, allocations: 15.84 kB / 0.8309 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.555e-05/0.1938, allocations: 17.72 kB / 0.8309 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1939, allocations: 318.8 kB / 0.8312 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006157/0.1946, allocations: 83.95 kB / 0.8313 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/0.1952, allocations: 102.5 kB / 0.8314 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.1963, allocations: 186.4 kB / 0.8316 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1963, allocations: 0 / 0.8316 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001316/0.1977, allocations: 221.5 kB / 0.8318 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1977, allocations: 8 kB / 0.8318 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.1977, allocations: 0 / 0.8318 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.1977, allocations: 0 / 0.8318 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004129/0.1981, allocations: 52 kB / 0.8319 GB, free: 5.078 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.1981, allocations: 0 / 0.8319 GB, free: 5.078 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.1985, allocations: 39.98 kB / 0.8319 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.1985, allocations: 3.984 kB / 0.8319 GB, free: 5.035 MB / 0.5762 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.972e-05/0.1986, allocations: 120.6 kB / 0.832 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.1986, allocations: 3.938 kB / 0.832 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.2, allocations: 241.1 kB / 0.8322 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2, allocations: 0 / 0.8322 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2, allocations: 3.938 kB / 0.8322 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2, allocations: 0 / 0.8322 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.2016, allocations: 454.4 kB / 0.8327 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2016, allocations: 7.938 kB / 0.8327 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004127/0.202, allocations: 43.97 kB / 0.8327 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.202, allocations: 8 kB / 0.8327 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.202, allocations: 320 / 0.8327 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.202, allocations: 4 kB / 0.8327 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.202, allocations: 0 / 0.8327 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.2034, allocations: 311.3 kB / 0.833 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-05/0.2034, allocations: 81.09 kB / 0.8331 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.2034, allocations: 0 / 0.8331 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.2038, allocations: 39.98 kB / 0.8332 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.129e-05/0.2038, allocations: 4 kB / 0.8332 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.2039, allocations: 7.984 kB / 0.8332 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.525e-05/0.2039, allocations: 75.28 kB / 0.8332 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.2039, allocations: 0 / 0.8332 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002516/0.2041, allocations: 12 kB / 0.8332 GB, free: 3.547 MB / 0.5762 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.001769/0.2059, allocations: 0.8421 MB / 0.8341 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001281/0.2072, allocations: 176 kB / 0.8342 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2072, allocations: 0 / 0.8342 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006119/0.2078, allocations: 100 kB / 0.8343 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.208, allocations: 1.031 kB / 0.8343 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.2094, allocations: 250.6 kB / 0.8346 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.2096, allocations: 0.6768 MB / 0.8352 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001787/0.2098, allocations: 24 kB / 0.8353 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.629e-05/0.2099, allocations: 15.44 kB / 0.8353 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.2099, allocations: 0 / 0.8353 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.2327, allocations: 1.668 MB / 0.8369 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.894/8.127, allocations: 10.39 kB / 0.8369 GB, free: 15.86 MB / 0.5919 GB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.42213392490521] Failed to read output from testmodel.py, exit status != 0: 8.194791126996279 8.219097592 8.026881764 Calling exit ...