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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.001506/0.001506, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.739/2.739, allocations: 469.4 MB / 0.742 GB, free: 7.758 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 67.78 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2828, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001762/0.2846, allocations: 0.6258 MB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.2862, allocations: 1.281 MB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.533e-05/0.2863, allocations: 0 / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.465e-05/0.2863, allocations: 3.938 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 1.896e-05/0.2863, allocations: 4 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.2867, allocations: 79.72 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.629e-05/0.2868, allocations: 19.98 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.656e-05/0.2869, allocations: 0 / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.402e-05/0.2869, allocations: 19.88 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.622e-05/0.287, allocations: 15.97 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.287, allocations: 0 / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.2872, allocations: 95.89 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.715e-05/0.2872, allocations: 11.94 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.487e-05/0.2872, allocations: 19.91 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.2874, allocations: 63.86 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2874, allocations: 4 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2874, allocations: 0 / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.2874, allocations: 0 / 1.066 GB, free: 12.28 MB / 0.8262 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.0004115/0.2878, allocations: 347.8 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.2879, allocations: 8.031 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.587e-05/0.2879, allocations: 34.75 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.288, allocations: 8.844 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.223e-05/0.2881, allocations: 168.4 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.2881, allocations: 8.312 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.2881, allocations: 4.375 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.2882, allocations: 49.81 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2882, allocations: 0 / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.2883, allocations: 8 kB / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.2883, allocations: 0 / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.532e-05/0.2883, allocations: 23.97 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.2885, allocations: 169.7 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.2886, allocations: 62.5 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.897e-05/0.2887, allocations: 24.84 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004781/0.2891, allocations: 0.5505 MB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.2892, allocations: 50.48 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.2892, allocations: 0 / 1.067 GB, free: 10.48 MB / 0.8262 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.0201/0.3093, allocations: 4.371 MB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3094, allocations: 55.41 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.644e-05/0.3094, allocations: 101.8 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.546e-05/0.3095, allocations: 29.7 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.565e-05/0.3095, allocations: 80.14 kB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.3097, allocations: 51.2 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002429/0.3099, allocations: 93.67 kB / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.81e-05/0.31, allocations: 318.8 kB / 1.072 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005101/0.3105, allocations: 315.8 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004941/0.311, allocations: 312 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001481/0.3125, allocations: 0.7721 MB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3125, allocations: 0 / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001499/0.314, allocations: 0.7981 MB / 1.074 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3141, allocations: 4 kB / 1.074 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3141, allocations: 0 / 1.074 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3141, allocations: 4 kB / 1.074 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008543/0.315, allocations: 103.9 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.315, allocations: 0 / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/0.3155, allocations: 4 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.801e-05/0.3156, allocations: 43.97 kB / 1.075 GB, free: 2.848 MB / 0.8262 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.0001765/0.3158, allocations: 118.3 kB / 1.075 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.499e-05/0.3159, allocations: 4 kB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003153/0.3191, allocations: 1.403 MB / 1.076 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.3191, allocations: 4 kB / 1.076 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3191, allocations: 0 / 1.076 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3191, allocations: 3.984 kB / 1.076 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.3219, allocations: 1.813 MB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.322, allocations: 4 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008187/0.3228, allocations: 107.9 kB / 1.078 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.535e-06/0.3228, allocations: 0 / 1.078 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.548e-05/0.3229, allocations: 31.94 kB / 1.078 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.343e-06/0.3229, allocations: 3.984 kB / 1.078 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3229, allocations: 0 / 1.078 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.3252, allocations: 1.473 MB / 1.079 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.757e-05/0.3253, allocations: 92.98 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.747e-05/0.3254, allocations: 11.92 kB / 1.08 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005739/0.326, allocations: 12 kB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.3262, allocations: 43.91 kB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.924e-05/0.3262, allocations: 32 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.042e-05/0.3263, allocations: 75.28 kB / 1.08 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3263, allocations: 0 / 1.08 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005678/0.3268, allocations: 184.1 kB / 1.08 GB, free: 13.33 MB / 0.8419 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.002918/0.3298, allocations: 2.127 MB / 1.082 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001266/0.3311, allocations: 0.7479 MB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3311, allocations: 0 / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006239/0.3317, allocations: 455.8 kB / 1.083 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.332, allocations: 17.62 kB / 1.083 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007504/0.3395, allocations: 3.708 MB / 1.087 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.3398, allocations: 0.722 MB / 1.087 GB, free: 5.426 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001389/0.3412, allocations: 297.5 kB / 1.088 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005487/0.3417, allocations: 115.4 kB / 1.088 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of SimCode: time 6.22e-07/0.3418, allocations: 7.938 kB / 1.088 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.3758, allocations: 12.66 MB / 1.1 GB, free: 8.523 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.234/7.609, allocations: 18.09 kB / 1.1 GB, free: 8.512 MB / 0.8575 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)