Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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: 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_10_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_10_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.0009975/0.0009975, allocations: 99.5 kB / 16.02 MB, free: 76 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.001195/0.001195, allocations: 185.1 kB / 16.93 MB, free: 6.891 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.382/1.382, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.566/2.566, allocations: 437.8 MB / 0.7128 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.000362, allocations: 12 kB / 0.8735 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.641/0.6413, allocations: 153.8 MB / 1.024 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007686/0.6421, allocations: 361.4 kB / 1.024 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.644, allocations: 1.268 MB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.918e-05/0.644, allocations: 0 / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.644, allocations: 11.88 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.235e-05/0.6441, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.6444, allocations: 59.81 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.497e-05/0.6445, allocations: 15.98 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.986e-05/0.6446, allocations: 7.984 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.346e-05/0.6446, allocations: 4 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.469e-05/0.6447, allocations: 19.91 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.6447, allocations: 4 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002452/0.6449, allocations: 91.91 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.974e-05/0.645, allocations: 19.91 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.055e-05/0.645, allocations: 37.64 kB / 1.026 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.6451, allocations: 47.88 kB / 1.026 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.6451, allocations: 0 / 1.026 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.064e-06/0.6452, allocations: 0 / 1.026 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.6452, allocations: 0 / 1.026 GB, free: 13.94 MB / 0.7794 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.0004764/0.6456, allocations: 353.5 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.6457, allocations: 8.031 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.74e-05/0.6457, allocations: 4.938 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.6459, allocations: 164.4 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.6459, allocations: 384 / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.6459, allocations: 8.359 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001444/0.6461, allocations: 54 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.6461, allocations: 3.906 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.6461, allocations: 0 / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.6461, allocations: 0 / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.349e-05/0.6462, allocations: 27.92 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000215/0.6464, allocations: 173.6 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.6466, allocations: 54.56 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.359e-05/0.6466, allocations: 29.08 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005351/0.6472, allocations: 0.5583 MB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.6472, allocations: 50.5 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.6472, allocations: 0 / 1.027 GB, free: 12.18 MB / 0.7794 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.02022/0.6674, allocations: 4.275 MB / 1.031 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.6675, allocations: 59.34 kB / 1.031 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.423e-05/0.6676, allocations: 97.84 kB / 1.031 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.011e-05/0.6677, allocations: 29.7 kB / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.31e-05/0.6677, allocations: 84.14 kB / 1.031 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.6679, allocations: 51.17 kB / 1.031 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.668, allocations: 17.72 kB / 1.032 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.6681, allocations: 326.8 kB / 1.032 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005213/0.6686, allocations: 303.9 kB / 1.032 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000529/0.6692, allocations: 307.9 kB / 1.032 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.6707, allocations: 0.7797 MB / 1.033 GB, free: 5.672 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.6707, allocations: 4.125 kB / 1.033 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001565/0.6723, allocations: 0.7956 MB / 1.034 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.6723, allocations: 8 kB / 1.034 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.6723, allocations: 0 / 1.034 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.6724, allocations: 3.984 kB / 1.034 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008527/0.6732, allocations: 87.95 kB / 1.034 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.6732, allocations: 0 / 1.034 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005771/0.6738, allocations: 12 kB / 1.034 GB, free: 4.758 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-05/0.6739, allocations: 35.97 kB / 1.034 GB, free: 4.723 MB / 0.7794 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.0002054/0.6741, allocations: 122.2 kB / 1.034 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.673e-05/0.6742, allocations: 11.91 kB / 1.034 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003569/0.6778, allocations: 1.396 MB / 1.036 GB, free: 3.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.6778, allocations: 7.984 kB / 1.036 GB, free: 3.172 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.6778, allocations: 0 / 1.036 GB, free: 3.172 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/0.6778, allocations: 3.984 kB / 1.036 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003026/0.6809, allocations: 1.814 MB / 1.037 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.6809, allocations: 0 / 1.037 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008255/0.6817, allocations: 103.9 kB / 1.037 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.6817, allocations: 4 kB / 1.037 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.117e-05/0.6818, allocations: 31.94 kB / 1.037 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.6818, allocations: 3.938 kB / 1.038 GB, free: 1.152 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.6818, allocations: 7.984 kB / 1.038 GB, free: 1.145 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/0.6843, allocations: 1.461 MB / 1.039 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.703e-05/0.6843, allocations: 92.89 kB / 1.039 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.255e-05/0.6844, allocations: 19.92 kB / 1.039 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005521/0.685, allocations: 8 kB / 1.039 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.6851, allocations: 43.97 kB / 1.039 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/0.6852, allocations: 27.94 kB / 1.039 GB, free: 15.46 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.346e-05/0.6853, allocations: 83.34 kB / 1.039 GB, free: 15.38 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6853, allocations: 0 / 1.039 GB, free: 15.38 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005823/0.6859, allocations: 180 kB / 1.039 GB, free: 15.2 MB / 0.795 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.0005345/0.6864, allocations: 219.1 kB / 1.04 GB, free: 14.98 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.6877, allocations: 0.7268 MB / 1.04 GB, free: 14.25 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6877, allocations: 0 / 1.04 GB, free: 14.25 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006709/0.6884, allocations: 451.8 kB / 1.041 GB, free: 13.81 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.6887, allocations: 16 kB / 1.041 GB, free: 13.79 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/0.6923, allocations: 0.8949 MB / 1.042 GB, free: 12.87 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.6926, allocations: 0.7223 MB / 1.042 GB, free: 12.12 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005551/0.6932, allocations: 91.41 kB / 1.042 GB, free: 12.03 MB / 0.795 GB Notification: Performance of SimCode: time 3e-07/0.6932, allocations: 0 / 1.042 GB, free: 12.03 MB / 0.795 GB Notification: Performance of Templates: time 0.0113/0.7045, allocations: 6.874 MB / 1.049 GB, free: 5.215 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)