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.001696/0.001696, allocations: 102.1 kB / 16.45 MB, free: 6.504 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.002115/0.002115, allocations: 216.9 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.475/1.475, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.002465/0.002465, allocations: 287.4 kB / 309.1 MB, free: 3.977 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.275/1.275, allocations: 180.9 MB / 0.5333 GB, free: 13.73 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.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.002821/0.002821, allocations: 103.5 kB / 0.7343 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2027, allocations: 95.34 MB / 0.8274 GB, free: 9.793 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001942/0.2046, allocations: 0.6232 MB / 0.828 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001968/0.2066, allocations: 1.363 MB / 0.8293 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.419e-05/0.2066, allocations: 0 / 0.8293 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.207e-05/0.2066, allocations: 11.94 kB / 0.8294 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.086e-05/0.2067, allocations: 0 / 0.8294 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.2071, allocations: 79.72 kB / 0.8294 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.369e-05/0.2071, allocations: 23.92 kB / 0.8295 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.581e-05/0.2072, allocations: 4 kB / 0.8295 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.709e-05/0.2072, allocations: 19.92 kB / 0.8295 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.93e-05/0.2073, allocations: 11.97 kB / 0.8295 GB, free: 7.641 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.2073, allocations: 0 / 0.8295 GB, free: 7.641 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002832/0.2076, allocations: 111.9 kB / 0.8296 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.606e-05/0.2076, allocations: 15.92 kB / 0.8296 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.2076, allocations: 7.938 kB / 0.8296 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.2078, allocations: 83.98 kB / 0.8297 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2078, allocations: 0 / 0.8297 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2078, allocations: 0 / 0.8297 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.2078, allocations: 0 / 0.8297 GB, free: 7.426 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.0005021/0.2083, allocations: 355.2 kB / 0.83 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.2084, allocations: 8.031 kB / 0.83 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.602e-05/0.2084, allocations: 38.75 kB / 0.8301 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.902e-05/0.2084, allocations: 4.938 kB / 0.8301 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.2086, allocations: 172.3 kB / 0.8303 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.2086, allocations: 4.375 kB / 0.8303 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.2086, allocations: 4.375 kB / 0.8303 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000129/0.2088, allocations: 53.8 kB / 0.8303 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2088, allocations: 0 / 0.8303 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.2088, allocations: 4 kB / 0.8303 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2088, allocations: 0 / 0.8303 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.726e-05/0.2089, allocations: 23.98 kB / 0.8303 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002219/0.2091, allocations: 177.6 kB / 0.8305 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.2092, allocations: 58.48 kB / 0.8306 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.779e-05/0.2093, allocations: 28.84 kB / 0.8306 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005853/0.2098, allocations: 0.5544 MB / 0.8311 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.2099, allocations: 38.5 kB / 0.8312 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.2099, allocations: 0 / 0.8312 GB, free: 5.621 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.02073/0.2306, allocations: 4.383 MB / 0.8355 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.2307, allocations: 55.41 kB / 0.8355 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.475e-05/0.2307, allocations: 97.84 kB / 0.8356 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.169e-05/0.2308, allocations: 29.7 kB / 0.8356 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.2308, allocations: 80.14 kB / 0.8357 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.231, allocations: 59.48 kB / 0.8358 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/0.2313, allocations: 85.67 kB / 0.8358 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.2314, allocations: 326.8 kB / 0.8362 GB, free: 328 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000676/0.2321, allocations: 307.9 kB / 0.8364 GB, free: 20 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005695/0.2327, allocations: 316 kB / 0.8367 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/0.2343, allocations: 0.7717 MB / 0.8375 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.2343, allocations: 4 kB / 0.8375 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001687/0.236, allocations: 0.7955 MB / 0.8383 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.236, allocations: 8 kB / 0.8383 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.236, allocations: 0 / 0.8383 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.236, allocations: 0 / 0.8383 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000966/0.237, allocations: 99.81 kB / 0.8384 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.237, allocations: 0 / 0.8384 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005977/0.2376, allocations: 12 kB / 0.8384 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.074e-05/0.2377, allocations: 39.97 kB / 0.8384 GB, free: 13.97 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.0002139/0.2379, allocations: 117.8 kB / 0.8385 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.372e-05/0.238, allocations: 7.953 kB / 0.8386 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003787/0.2417, allocations: 1.4 MB / 0.8399 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2417, allocations: 8 kB / 0.8399 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.2418, allocations: 3.938 kB / 0.8399 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.2418, allocations: 3.984 kB / 0.8399 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.245, allocations: 1.811 MB / 0.8417 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.245, allocations: 0 / 0.8417 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/0.2458, allocations: 107.9 kB / 0.8418 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.2458, allocations: 4 kB / 0.8418 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.472e-05/0.2459, allocations: 31.97 kB / 0.8418 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.2459, allocations: 3.984 kB / 0.8418 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.2459, allocations: 11.94 kB / 0.8419 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/0.2485, allocations: 1.466 MB / 0.8433 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.2486, allocations: 92.95 kB / 0.8434 GB, free: 8.801 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.561e-05/0.2486, allocations: 15.92 kB / 0.8434 GB, free: 8.785 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000548/0.2492, allocations: 11.98 kB / 0.8434 GB, free: 8.773 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.2494, allocations: 48.03 kB / 0.8434 GB, free: 8.727 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.566e-05/0.2494, allocations: 28 kB / 0.8435 GB, free: 8.699 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 5.224e-05/0.2495, allocations: 79.28 kB / 0.8436 GB, free: 8.621 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.2495, allocations: 0 / 0.8436 GB, free: 8.621 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006654/0.2501, allocations: 183.7 kB / 0.8437 GB, free: 8.441 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.003472/0.2536, allocations: 2.139 MB / 0.8458 GB, free: 6.273 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001374/0.255, allocations: 0.7127 MB / 0.8465 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.255, allocations: 0 / 0.8465 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006949/0.2557, allocations: 404 kB / 0.8469 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.256, allocations: 24.95 kB / 0.8469 GB, free: 5.145 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008293/0.2643, allocations: 3.731 MB / 0.8506 GB, free: 1.328 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.2647, allocations: 0.7181 MB / 0.8513 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001008/0.2657, allocations: 293.5 kB / 0.8515 GB, free: 300 kB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006093/0.2663, allocations: 115.4 kB / 0.8517 GB, free: 184 kB / 0.5919 GB Notification: Performance of SimCode: time 8.62e-07/0.2663, allocations: 0 / 0.8517 GB, free: 184 kB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04123/0.3075, allocations: 12.91 MB / 0.8643 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/8.43, allocations: 4.938 kB / 0.8643 GB, free: 3.492 MB / 0.6075 GB " [Timeout remaining time 651] (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: 12.918510490097106] Failed to read output from testmodel.py, exit status != 0: 8.52042707707733 8.542828846 8.330949056 Calling exit ...