Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001597/0.001598, allocations: 108 kB / 15.99 MB, free: 6.359 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.001597/0.001597, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.46/1.46, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.725/2.725, allocations: 469.8 MB / 0.7427 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 68.05 kB / 0.9087 GB, free: 14.24 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3485, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002074/0.3506, allocations: 0.6853 MB / 1.065 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001984/0.3526, allocations: 1.283 MB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.708e-05/0.3526, allocations: 0 / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.08e-05/0.3527, allocations: 0 / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.266e-05/0.3527, allocations: 3.938 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004113/0.3531, allocations: 59.88 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.391e-05/0.3532, allocations: 27.91 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.925e-05/0.3533, allocations: 4 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.89e-05/0.3533, allocations: 15.92 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.459e-05/0.3534, allocations: 11.98 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.3534, allocations: 4 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.3536, allocations: 99.89 kB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.3537, allocations: 3.938 kB / 1.066 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.988e-05/0.3537, allocations: 19.91 kB / 1.066 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.3538, allocations: 47.94 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.3538, allocations: 0 / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.414e-06/0.3539, allocations: 3.938 kB / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.3539, allocations: 0 / 1.066 GB, free: 12.83 MB / 0.8419 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.0005319/0.3544, allocations: 347.8 kB / 1.067 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3545, allocations: 12.62 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.149e-05/0.3545, allocations: 4.844 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.3547, allocations: 172.3 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.3547, allocations: 384 / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.3547, allocations: 4.375 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.3549, allocations: 57.98 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3549, allocations: 0 / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.3549, allocations: 0 / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3549, allocations: 4 kB / 1.067 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.075e-05/0.355, allocations: 27.92 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002173/0.3553, allocations: 165.7 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.3554, allocations: 54.56 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.755e-05/0.3554, allocations: 24.86 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006711/0.3561, allocations: 0.5622 MB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.3562, allocations: 34.5 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.3562, allocations: 0 / 1.068 GB, free: 11.09 MB / 0.8419 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.02224/0.3784, allocations: 4.383 MB / 1.072 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/0.3785, allocations: 55.34 kB / 1.072 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.3787, allocations: 93.86 kB / 1.072 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 8.473e-05/0.3788, allocations: 29.7 kB / 1.072 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.605e-05/0.3788, allocations: 80.14 kB / 1.072 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.379, allocations: 55.2 kB / 1.072 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002868/0.3793, allocations: 89.78 kB / 1.072 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3794, allocations: 326.8 kB / 1.073 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005955/0.38, allocations: 307.9 kB / 1.073 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/0.3806, allocations: 315.8 kB / 1.073 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/0.3823, allocations: 0.7723 MB / 1.074 GB, free: 4.406 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3823, allocations: 0 / 1.074 GB, free: 4.406 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001808/0.3841, allocations: 0.7904 MB / 1.075 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.3841, allocations: 10.5 kB / 1.075 GB, free: 3.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3842, allocations: 3.938 kB / 1.075 GB, free: 3.598 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.3842, allocations: 0 / 1.075 GB, free: 3.598 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008294/0.385, allocations: 95.94 kB / 1.075 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.385, allocations: 0 / 1.075 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004968/0.3855, allocations: 12 kB / 1.075 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.316e-05/0.3856, allocations: 35.92 kB / 1.075 GB, free: 3.457 MB / 0.8419 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.0002376/0.3859, allocations: 127.9 kB / 1.075 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.364e-05/0.386, allocations: 3.906 kB / 1.075 GB, free: 3.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003532/0.3895, allocations: 1.403 MB / 1.077 GB, free: 1.91 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3895, allocations: 8 kB / 1.077 GB, free: 1.902 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.3895, allocations: 0 / 1.077 GB, free: 1.902 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3896, allocations: 0 / 1.077 GB, free: 1.902 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003354/0.3929, allocations: 1.809 MB / 1.078 GB, free: 36 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.3929, allocations: 7.922 kB / 1.078 GB, free: 28 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.5063/0.8993, allocations: 104.2 kB / 1.078 GB, free: 23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.458e-05/0.8993, allocations: 5.719 kB / 1.078 GB, free: 23 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/0.8995, allocations: 30.47 kB / 1.078 GB, free: 23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.088e-05/0.8995, allocations: 4.094 kB / 1.078 GB, free: 23 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.8995, allocations: 2 kB / 1.078 GB, free: 23 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.9021, allocations: 1.469 MB / 1.08 GB, free: 22.71 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.027e-05/0.9021, allocations: 93.45 kB / 1.08 GB, free: 22.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.392e-05/0.9022, allocations: 12.41 kB / 1.08 GB, free: 22.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005058/0.9027, allocations: 10.86 kB / 1.08 GB, free: 22.61 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.9029, allocations: 46.59 kB / 1.08 GB, free: 22.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.67e-05/0.903, allocations: 29.34 kB / 1.08 GB, free: 22.61 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 1.84e-05/0.903, allocations: 76.41 kB / 1.08 GB, free: 22.53 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.903, allocations: 1.125 kB / 1.08 GB, free: 22.53 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005735/0.9036, allocations: 175.3 kB / 1.08 GB, free: 22.52 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.000475/0.9041, allocations: 226 kB / 1.081 GB, free: 22.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001246/0.9053, allocations: 0.7432 MB / 1.081 GB, free: 22.12 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.9053, allocations: 0 / 1.081 GB, free: 22.12 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006163/0.906, allocations: 452 kB / 1.082 GB, free: 21.93 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.9063, allocations: 20.03 kB / 1.082 GB, free: 21.92 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/0.9095, allocations: 0.8904 MB / 1.083 GB, free: 21.49 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.9097, allocations: 0.7178 MB / 1.083 GB, free: 20.79 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005703/0.9103, allocations: 94.69 kB / 1.083 GB, free: 20.78 MB / 0.8419 GB Notification: Performance of SimCode: time 6.21e-07/0.9103, allocations: 1.406 kB / 1.083 GB, free: 20.78 MB / 0.8419 GB Notification: Performance of Templates: time 0.01268/0.923, allocations: 6.889 MB / 1.09 GB, free: 20.41 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)