Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.001394/0.001394, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00188/0.00188, allocations: 216.8 kB / 22.25 MB, free: 4.855 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.452/1.452, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.00255/0.00255, allocations: 299.9 kB / 312.7 MB, free: 2.598 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.396/1.396, allocations: 180.6 MB / 0.5369 GB, free: 14.5 MB / 382.1 MB " [Timeout remaining time 178] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",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.00295/0.00295, allocations: 100.1 kB / 0.7395 GB, free: 28.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1876, allocations: 95.39 MB / 0.8327 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00189/0.1894, allocations: 0.6125 MB / 0.8333 GB, free: 7.656 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001971/0.1914, allocations: 1.305 MB / 0.8346 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.378e-05/0.1914, allocations: 0 / 0.8346 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.573e-05/0.1915, allocations: 0 / 0.8346 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.869e-05/0.1915, allocations: 3.938 kB / 0.8346 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000444/0.1919, allocations: 87.72 kB / 0.8347 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.219e-05/0.192, allocations: 23.97 kB / 0.8347 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.812e-05/0.1921, allocations: 4 kB / 0.8347 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.15e-05/0.1921, allocations: 15.92 kB / 0.8347 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.165e-05/0.1922, allocations: 11.92 kB / 0.8347 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.1922, allocations: 4 kB / 0.8347 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003249/0.1925, allocations: 107.8 kB / 0.8348 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 2.032e-05/0.1925, allocations: 11.97 kB / 0.8348 GB, free: 6.07 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/0.1926, allocations: 7.938 kB / 0.8348 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.1928, allocations: 80 kB / 0.8349 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1928, allocations: 0 / 0.8349 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.364e-06/0.1928, allocations: 4 kB / 0.8349 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.245e-06/0.1928, allocations: 0 / 0.8349 GB, free: 5.98 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000536/0.1933, allocations: 274.2 kB / 0.8352 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.1934, allocations: 13.34 kB / 0.8352 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.866e-05/0.1934, allocations: 34.73 kB / 0.8352 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.481e-05/0.1935, allocations: 4.938 kB / 0.8352 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1936, allocations: 102.5 kB / 0.8353 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.1936, allocations: 8.375 kB / 0.8353 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.1936, allocations: 4.328 kB / 0.8353 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.1938, allocations: 95.36 kB / 0.8354 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1938, allocations: 8 kB / 0.8354 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.1938, allocations: 0 / 0.8354 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1938, allocations: 0 / 0.8354 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.633e-05/0.1939, allocations: 19.98 kB / 0.8354 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002311/0.1941, allocations: 136.7 kB / 0.8356 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.1943, allocations: 58.56 kB / 0.8356 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.336e-05/0.1943, allocations: 28.78 kB / 0.8357 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002704/0.1946, allocations: 43.97 kB / 0.8357 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.1946, allocations: 34.5 kB / 0.8357 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.1946, allocations: 0 / 0.8357 GB, free: 4.996 MB / 0.5762 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01909/0.2137, allocations: 4.171 MB / 0.8398 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.2138, allocations: 51.41 kB / 0.8399 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.351e-05/0.2139, allocations: 97.86 kB / 0.84 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.323e-05/0.214, allocations: 29.7 kB / 0.84 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.016e-05/0.214, allocations: 80.14 kB / 0.8401 GB, free: 456 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.2142, allocations: 67.45 kB / 0.8401 GB, free: 388 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/0.2144, allocations: 85.67 kB / 0.8402 GB, free: 296 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2145, allocations: 322.8 kB / 0.8405 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005324/0.2151, allocations: 311.9 kB / 0.8408 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005322/0.2156, allocations: 311.8 kB / 0.8411 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.2172, allocations: 0.776 MB / 0.8419 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2172, allocations: 0 / 0.8419 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001587/0.2188, allocations: 0.7983 MB / 0.8426 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.2188, allocations: 10.19 kB / 0.8427 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2188, allocations: 0 / 0.8427 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.2188, allocations: 3.984 kB / 0.8427 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008218/0.2196, allocations: 95.94 kB / 0.8427 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.2196, allocations: 4 kB / 0.8428 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004915/0.2201, allocations: 7.938 kB / 0.8428 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.2202, allocations: 31.98 kB / 0.8428 GB, free: 13.62 MB / 0.5919 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 (18): * Single equations (assignments): 18 * 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.0002351/0.2205, allocations: 122.4 kB / 0.8429 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.379e-05/0.2205, allocations: 11.94 kB / 0.8429 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003153/0.2237, allocations: 1.407 MB / 0.8443 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.2237, allocations: 4 kB / 0.8443 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2237, allocations: 0 / 0.8443 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2237, allocations: 7.938 kB / 0.8443 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003018/0.2267, allocations: 1.689 MB / 0.846 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.2267, allocations: 4.031 kB / 0.846 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007789/0.2275, allocations: 107.9 kB / 0.8461 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.2275, allocations: 0 / 0.8461 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.543e-05/0.2276, allocations: 35.92 kB / 0.8461 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.733e-06/0.2276, allocations: 5.016 kB / 0.8461 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2276, allocations: 0 / 0.8461 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.23, allocations: 1.466 MB / 0.8475 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.2301, allocations: 23.84 kB / 0.8476 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.206e-05/0.2302, allocations: 15.94 kB / 0.8476 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004951/0.2307, allocations: 8 kB / 0.8476 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.2308, allocations: 48.02 kB / 0.8476 GB, free: 8.586 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.744e-05/0.2309, allocations: 32 kB / 0.8477 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 4.666e-05/0.2309, allocations: 79.27 kB / 0.8477 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.2309, allocations: 0 / 0.8477 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005546/0.2315, allocations: 183.7 kB / 0.8479 GB, free: 8.297 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.003114/0.2346, allocations: 2.131 MB / 0.85 GB, free: 6.137 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001258/0.2358, allocations: 0.7145 MB / 0.8507 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2358, allocations: 0 / 0.8507 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.2365, allocations: 403.8 kB / 0.8511 GB, free: 5.027 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.2368, allocations: 20 kB / 0.8511 GB, free: 5.008 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007652/0.2444, allocations: 3.696 MB / 0.8547 GB, free: 1.227 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.752e-05/0.2445, allocations: 107.4 kB / 0.8548 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001044/0.2456, allocations: 297.5 kB / 0.8551 GB, free: 0.8164 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005472/0.2461, allocations: 115.4 kB / 0.8552 GB, free: 0.7031 MB / 0.5919 GB Notification: Performance of SimCode: time 7.11e-07/0.2461, allocations: 0 / 0.8552 GB, free: 0.7031 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04506/0.2912, allocations: 14.12 MB / 0.869 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.63, allocations: 3.188 kB / 0.869 GB, free: 2.801 MB / 0.6075 GB " [Timeout remaining time 648] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_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_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.1906207469292] Failed to read output from testmodel.py, exit status != 0: 11.735340641345829 11.75402098 11.5578969 Calling exit ...