Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",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.007842/0.007842, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.001912/0.001912, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.443/1.443, 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/Buildings 11.1.0-master/package.mo): time 2.601/2.601, allocations: 469.4 MB / 0.7422 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.91 kB / 1.064 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7996/0.801, allocations: 159.1 MB / 1.22 GB, free: 2.238 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001809/0.8029, allocations: 0.6155 MB / 1.22 GB, free: 1.625 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001759/0.8046, allocations: 1.279 MB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.307e-05/0.8047, allocations: 0 / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.57e-05/0.8047, allocations: 3.938 kB / 1.222 GB, free: 332 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.847e-05/0.8048, allocations: 3.938 kB / 1.222 GB, free: 328 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004361/0.8052, allocations: 79.72 kB / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.049e-05/0.8053, allocations: 23.98 kB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.8053, allocations: 0 / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.579e-05/0.8054, allocations: 12 kB / 1.222 GB, free: 212 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.189e-05/0.8054, allocations: 19.91 kB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.8055, allocations: 0 / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.8057, allocations: 95.89 kB / 1.222 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.777e-05/0.8057, allocations: 11.92 kB / 1.222 GB, free: 84 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.8058, allocations: 15.92 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.8059, allocations: 54.59 kB / 1.222 GB, free: 16 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.8059, allocations: 11.94 kB / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.863e-06/0.806, allocations: 0 / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.806, allocations: 4 kB / 1.222 GB, free: 0 / 0.9356 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.0004906/0.8065, allocations: 356.2 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.8065, allocations: 8.625 kB / 1.222 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.884e-05/0.8066, allocations: 38.69 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.901e-05/0.8066, allocations: 4.938 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.8067, allocations: 164.4 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.8067, allocations: 4.375 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.8068, allocations: 4.328 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.8069, allocations: 57.81 kB / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.8069, allocations: 0 / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.8069, allocations: 4 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.8069, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.744e-05/0.807, allocations: 27.91 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.8072, allocations: 169.6 kB / 1.223 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.8073, allocations: 62.55 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.607e-05/0.8074, allocations: 32.84 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005126/0.8079, allocations: 0.5505 MB / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.8079, allocations: 42.5 kB / 1.223 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.8079, allocations: 0 / 1.223 GB, free: 14.2 MB / 0.9512 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.02065/0.8286, allocations: 4.376 MB / 1.228 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.8287, allocations: 51.41 kB / 1.228 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.347e-05/0.8288, allocations: 93.84 kB / 1.228 GB, free: 9.5 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 7.207e-05/0.8288, allocations: 37.64 kB / 1.228 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.8289, allocations: 84.27 kB / 1.228 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.829, allocations: 59.48 kB / 1.228 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002474/0.8293, allocations: 85.67 kB / 1.228 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.8294, allocations: 326.8 kB / 1.228 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005508/0.83, allocations: 303.9 kB / 1.229 GB, free: 8.598 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005731/0.8305, allocations: 315.9 kB / 1.229 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.8322, allocations: 0.7722 MB / 1.23 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.8322, allocations: 0 / 1.23 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00164/0.8339, allocations: 0.7943 MB / 1.231 GB, free: 6.715 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.8339, allocations: 13.88 kB / 1.231 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.8339, allocations: 0 / 1.231 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.8339, allocations: 0 / 1.231 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008963/0.8348, allocations: 99.88 kB / 1.231 GB, free: 6.605 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.8349, allocations: 0.9375 kB / 1.231 GB, free: 6.605 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005694/0.8354, allocations: 8 kB / 1.231 GB, free: 6.598 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.8355, allocations: 35.97 kB / 1.231 GB, free: 6.562 MB / 0.9512 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.0002107/0.8357, allocations: 121.7 kB / 1.231 GB, free: 6.434 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.073e-05/0.8358, allocations: 7.953 kB / 1.231 GB, free: 6.426 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003196/0.839, allocations: 1.396 MB / 1.232 GB, free: 5.02 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.8391, allocations: 8 kB / 1.232 GB, free: 5.012 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.8391, allocations: 4 kB / 1.232 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.8391, allocations: 3.984 kB / 1.232 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/0.8422, allocations: 1.822 MB / 1.234 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.8422, allocations: 0 / 1.234 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008524/0.843, allocations: 107.9 kB / 1.234 GB, free: 3.012 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.451e-06/0.8431, allocations: 0 / 1.234 GB, free: 3.012 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-05/0.8431, allocations: 31.94 kB / 1.234 GB, free: 2.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.8431, allocations: 0 / 1.234 GB, free: 2.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.8432, allocations: 7.984 kB / 1.234 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.8456, allocations: 1.471 MB / 1.236 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-05/0.8456, allocations: 89 kB / 1.236 GB, free: 1.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.8457, allocations: 15.92 kB / 1.236 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005582/0.8463, allocations: 8 kB / 1.236 GB, free: 1.355 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.8465, allocations: 47.91 kB / 1.236 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.936e-05/0.8465, allocations: 28 kB / 1.236 GB, free: 1.281 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.306e-05/0.8466, allocations: 79.28 kB / 1.236 GB, free: 1.203 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8466, allocations: 4.156 kB / 1.236 GB, free: 1.199 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005654/0.8472, allocations: 179.7 kB / 1.236 GB, free: 1.023 MB / 0.9512 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.003073/0.8502, allocations: 2.142 MB / 1.238 GB, free: 14.85 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001283/0.8515, allocations: 0.7223 MB / 1.239 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.8516, allocations: 4.062 kB / 1.239 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.00067/0.8522, allocations: 455.7 kB / 1.239 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.8526, allocations: 16 kB / 1.239 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007746/0.8603, allocations: 3.721 MB / 1.243 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.8606, allocations: 0.7181 MB / 1.244 GB, free: 9.109 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001027/0.8616, allocations: 293.5 kB / 1.244 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005858/0.8622, allocations: 115.4 kB / 1.244 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of SimCode: time 5.61e-07/0.8622, allocations: 4 kB / 1.244 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04895/0.9112, allocations: 12.72 MB / 1.256 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/8.753, allocations: 15.03 kB / 1.256 GB, free: 12.17 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)