Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_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.008124/0.008124, allocations: 100.2 kB / 15.73 MB, free: 6.5 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.002004/0.002004, allocations: 198.8 kB / 16.68 MB, free: 6.375 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.485/2.485, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001323, allocations: 64.47 kB / 0.9504 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2744, allocations: 140.4 MB / 1.088 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001917/0.2763, allocations: 0.6076 MB / 1.088 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002072/0.2784, allocations: 1.285 MB / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.2785, allocations: 4 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.144e-05/0.2785, allocations: 0 / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.166e-05/0.2786, allocations: 3.938 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005773/0.2792, allocations: 75.72 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.574e-05/0.2793, allocations: 19.98 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.117e-05/0.2793, allocations: 7.984 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.427e-05/0.2794, allocations: 15.94 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.366e-05/0.2795, allocations: 7.984 kB / 1.09 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.2795, allocations: 0 / 1.09 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003215/0.2798, allocations: 99.89 kB / 1.09 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.2798, allocations: 11.92 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.658e-05/0.2799, allocations: 15.92 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.2801, allocations: 72.06 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2801, allocations: 0 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2801, allocations: 0 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.2801, allocations: 4 kB / 1.09 GB, free: 15.82 MB / 0.8575 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.0005415/0.2807, allocations: 351.3 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.2807, allocations: 11.97 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.229e-05/0.2808, allocations: 34.75 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.2808, allocations: 8.891 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.2809, allocations: 164.3 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.281, allocations: 4.375 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.281, allocations: 4.375 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.2812, allocations: 65.78 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.2812, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2812, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2812, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.548e-05/0.2813, allocations: 27.92 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002295/0.2815, allocations: 165.6 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.2817, allocations: 58.56 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.129e-05/0.2817, allocations: 28.86 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005696/0.2823, allocations: 0.5622 MB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.2823, allocations: 34.5 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.2823, allocations: 0 / 1.091 GB, free: 14.02 MB / 0.8575 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.02029/0.3026, allocations: 4.376 MB / 1.095 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.3027, allocations: 55.34 kB / 1.095 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.499e-05/0.3028, allocations: 93.86 kB / 1.096 GB, free: 9.316 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.586e-05/0.3029, allocations: 29.7 kB / 1.096 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.394e-05/0.3029, allocations: 80.14 kB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.303, allocations: 63.62 kB / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002579/0.3033, allocations: 89.66 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3034, allocations: 322.8 kB / 1.096 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005439/0.304, allocations: 311.8 kB / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005476/0.3045, allocations: 314.4 kB / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.3061, allocations: 0.7702 MB / 1.097 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3061, allocations: 0 / 1.097 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001626/0.3078, allocations: 0.793 MB / 1.098 GB, free: 6.539 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.3078, allocations: 8 kB / 1.098 GB, free: 6.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3078, allocations: 7.938 kB / 1.098 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3078, allocations: 0 / 1.098 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008847/0.3087, allocations: 91.94 kB / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.3087, allocations: 4.062 kB / 1.098 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005669/0.3093, allocations: 19.94 kB / 1.098 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/0.3094, allocations: 31.98 kB / 1.098 GB, free: 6.379 MB / 0.8575 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.0002039/0.3096, allocations: 125.7 kB / 1.099 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.593e-05/0.3097, allocations: 3.953 kB / 1.099 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003107/0.3128, allocations: 1.403 MB / 1.1 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3128, allocations: 4 kB / 1.1 GB, free: 4.824 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3128, allocations: 4 kB / 1.1 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3128, allocations: 0 / 1.1 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.3159, allocations: 1.814 MB / 1.102 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.3159, allocations: 3.984 kB / 1.102 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008751/0.3168, allocations: 107.9 kB / 1.102 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.3168, allocations: 4 kB / 1.102 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.277e-05/0.3169, allocations: 27.94 kB / 1.102 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.3169, allocations: 4 kB / 1.102 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3169, allocations: 3.938 kB / 1.102 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.3194, allocations: 1.474 MB / 1.103 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.3195, allocations: 92.98 kB / 1.103 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.3196, allocations: 11.94 kB / 1.103 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000566/0.3202, allocations: 11.94 kB / 1.103 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.3203, allocations: 47.95 kB / 1.103 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.067e-05/0.3204, allocations: 28 kB / 1.103 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.075e-05/0.3204, allocations: 79.28 kB / 1.104 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3204, allocations: 160 / 1.104 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006022/0.321, allocations: 179.7 kB / 1.104 GB, free: 0.8438 MB / 0.8575 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.003528/0.3246, allocations: 2.135 MB / 1.106 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001371/0.326, allocations: 0.7264 MB / 1.107 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.326, allocations: 4.062 kB / 1.107 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006863/0.3267, allocations: 455.7 kB / 1.107 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.327, allocations: 16 kB / 1.107 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007723/0.3348, allocations: 3.707 MB / 1.111 GB, free: 9.699 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.3351, allocations: 0.7142 MB / 1.111 GB, free: 8.957 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.00105/0.3362, allocations: 301.5 kB / 1.112 GB, free: 8.66 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000579/0.3368, allocations: 115.4 kB / 1.112 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of SimCode: time 7.52e-07/0.3368, allocations: 0 / 1.112 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03438/0.3712, allocations: 12.72 MB / 1.124 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/7.999, allocations: 11.56 kB / 1.124 GB, free: 11.95 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)