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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 92.16 kB / 16.02 MB, free: 80 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.002009/0.002009, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.39/1.39, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.812/2.812, allocations: 462.6 MB / 0.7371 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003587, allocations: 12.69 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2803, allocations: 159.6 MB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007399/0.2811, allocations: 354.7 kB / 1.06 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001641/0.2827, allocations: 1.283 MB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.568e-05/0.2828, allocations: 3.938 kB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.128e-05/0.2828, allocations: 0 / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.381e-05/0.2828, allocations: 3.938 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.2831, allocations: 55.88 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.093e-05/0.2832, allocations: 19.98 kB / 1.061 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.2833, allocations: 4 kB / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.799e-05/0.2833, allocations: 11.98 kB / 1.061 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.37e-05/0.2834, allocations: 15.92 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.2834, allocations: 7.984 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.2836, allocations: 95.91 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.657e-05/0.2836, allocations: 15.91 kB / 1.061 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.2837, allocations: 33.64 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.9e-05/0.2838, allocations: 43.94 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2838, allocations: 3.938 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2838, allocations: 4 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.2838, allocations: 0 / 1.061 GB, free: 2.938 MB / 0.8106 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.0003869/0.2842, allocations: 343.9 kB / 1.062 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.2842, allocations: 11.97 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.2843, allocations: 0.9375 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.2844, allocations: 168.3 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.2844, allocations: 4.375 kB / 1.062 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.2844, allocations: 8.281 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.2846, allocations: 65.97 kB / 1.062 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.2846, allocations: 0 / 1.062 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.2846, allocations: 0 / 1.062 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.2846, allocations: 0 / 1.062 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.298e-05/0.2847, allocations: 27.92 kB / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.2848, allocations: 165.7 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.2849, allocations: 58.5 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.284e-05/0.285, allocations: 28.86 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004797/0.2855, allocations: 0.5583 MB / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.2855, allocations: 38.73 kB / 1.063 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.2855, allocations: 0 / 1.063 GB, free: 1.188 MB / 0.8106 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.01985/0.3054, allocations: 4.272 MB / 1.067 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.3055, allocations: 55.41 kB / 1.067 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.891e-05/0.3055, allocations: 97.8 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.649e-05/0.3056, allocations: 25.7 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.819e-05/0.3057, allocations: 80.14 kB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.3058, allocations: 67.08 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.459e-05/0.3059, allocations: 21.84 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.306, allocations: 326.8 kB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005083/0.3065, allocations: 307.9 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005001/0.3071, allocations: 307.9 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.3086, allocations: 0.7721 MB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.3086, allocations: 4 kB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001541/0.3102, allocations: 0.7924 MB / 1.07 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.3102, allocations: 8 kB / 1.07 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3102, allocations: 0 / 1.07 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3102, allocations: 7.938 kB / 1.07 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008345/0.3111, allocations: 99.88 kB / 1.07 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.3111, allocations: 0 / 1.07 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000556/0.3117, allocations: 8 kB / 1.07 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.058e-05/0.3117, allocations: 39.97 kB / 1.07 GB, free: 9.719 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.0001981/0.3119, allocations: 117.7 kB / 1.07 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.568e-05/0.312, allocations: 7.906 kB / 1.07 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/0.3155, allocations: 1.4 MB / 1.071 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3155, allocations: 8 kB / 1.071 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3155, allocations: 0 / 1.071 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3155, allocations: 7.969 kB / 1.071 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/0.3184, allocations: 1.809 MB / 1.073 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3184, allocations: 0 / 1.073 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007907/0.3192, allocations: 111.9 kB / 1.073 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.3192, allocations: 4 kB / 1.073 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-05/0.3193, allocations: 27.94 kB / 1.073 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.3193, allocations: 0 / 1.073 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.3193, allocations: 7.938 kB / 1.073 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.3217, allocations: 1.465 MB / 1.075 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.68e-05/0.3217, allocations: 92.89 kB / 1.075 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.297e-05/0.3218, allocations: 23.94 kB / 1.075 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.3224, allocations: 11.98 kB / 1.075 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.3225, allocations: 43.97 kB / 1.075 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.092e-05/0.3226, allocations: 28 kB / 1.075 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.706e-05/0.3227, allocations: 79.28 kB / 1.075 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3227, allocations: 0 / 1.075 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005937/0.3233, allocations: 176 kB / 1.075 GB, free: 4.199 MB / 0.8262 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.0005506/0.3238, allocations: 223.2 kB / 1.075 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001278/0.3251, allocations: 0.7223 MB / 1.076 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3251, allocations: 0 / 1.076 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.3258, allocations: 451.8 kB / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.3262, allocations: 14.25 kB / 1.076 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.3296, allocations: 0.892 MB / 1.077 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.3299, allocations: 0.7106 MB / 1.078 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005464/0.3305, allocations: 95.41 kB / 1.078 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.3305, allocations: 0 / 1.078 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of Templates: time 0.01116/0.3416, allocations: 6.89 MB / 1.085 GB, free: 10.2 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)