Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.0009582/0.0009582, allocations: 108 kB / 15.61 MB, free: 148 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.0009342/0.0009341, allocations: 194.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.192/1.192, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.369/1.369, allocations: 251.7 MB / 0.5092 GB, free: 3.09 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.91 kB / 0.6223 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.343, allocations: 104.7 MB / 0.7245 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001528/0.3446, allocations: 0.6222 MB / 0.7251 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.3459, allocations: 1.306 MB / 0.7264 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.3459, allocations: 4 kB / 0.7264 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.3459, allocations: 3.938 kB / 0.7264 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 1.926e-05/0.3459, allocations: 7.938 kB / 0.7264 GB, free: 11 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.3462, allocations: 75.72 kB / 0.7265 GB, free: 10.93 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.554e-05/0.3463, allocations: 23.92 kB / 0.7265 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.251e-05/0.3463, allocations: 4 kB / 0.7265 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.939e-05/0.3464, allocations: 15.98 kB / 0.7265 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.232e-05/0.3464, allocations: 15.91 kB / 0.7265 GB, free: 10.87 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.3464, allocations: 0 / 0.7265 GB, free: 10.87 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.3466, allocations: 95.91 kB / 0.7266 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.288e-05/0.3466, allocations: 3.984 kB / 0.7266 GB, free: 10.77 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.3467, allocations: 19.92 kB / 0.7267 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.3468, allocations: 59.86 kB / 0.7267 GB, free: 10.7 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3468, allocations: 0 / 0.7267 GB, free: 10.7 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3468, allocations: 7.938 kB / 0.7267 GB, free: 10.69 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.3468, allocations: 0 / 0.7267 GB, free: 10.69 MB / 0.545 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.0003503/0.3472, allocations: 348.7 kB / 0.7271 GB, free: 10.3 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.3472, allocations: 12.02 kB / 0.7271 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.31e-05/0.3472, allocations: 4.938 kB / 0.7271 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.538e-05/0.3473, allocations: 168.3 kB / 0.7272 GB, free: 10.09 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.3473, allocations: 4.375 kB / 0.7272 GB, free: 10.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.3474, allocations: 8.281 kB / 0.7272 GB, free: 10.07 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.3475, allocations: 57.98 kB / 0.7273 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3475, allocations: 0 / 0.7273 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.3475, allocations: 0 / 0.7273 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3475, allocations: 0 / 0.7273 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.563e-05/0.3476, allocations: 31.91 kB / 0.7273 GB, free: 9.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.3477, allocations: 173.6 kB / 0.7275 GB, free: 9.762 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 9.575e-05/0.3478, allocations: 58.56 kB / 0.7276 GB, free: 9.695 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.669e-05/0.3479, allocations: 28.84 kB / 0.7276 GB, free: 9.664 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003796/0.3483, allocations: 0.5544 MB / 0.7281 GB, free: 8.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.3483, allocations: 34.5 kB / 0.7282 GB, free: 8.938 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.3483, allocations: 0 / 0.7282 GB, free: 8.938 MB / 0.545 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.018/0.3663, allocations: 4.301 MB / 0.7324 GB, free: 4.484 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.3663, allocations: 55.34 kB / 0.7324 GB, free: 4.418 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.486e-05/0.3664, allocations: 93.86 kB / 0.7325 GB, free: 4.316 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.886e-05/0.3665, allocations: 37.64 kB / 0.7325 GB, free: 4.273 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.37e-05/0.3665, allocations: 80.14 kB / 0.7326 GB, free: 4.191 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.901e-05/0.3666, allocations: 59.09 kB / 0.7327 GB, free: 4.133 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.3668, allocations: 93.66 kB / 0.7328 GB, free: 4.035 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.429e-05/0.3669, allocations: 322.8 kB / 0.7331 GB, free: 3.711 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004601/0.3674, allocations: 307.9 kB / 0.7334 GB, free: 3.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004555/0.3678, allocations: 313.9 kB / 0.7337 GB, free: 3.105 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.3692, allocations: 0.7469 MB / 0.7344 GB, free: 2.355 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.3692, allocations: 4 kB / 0.7344 GB, free: 2.352 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001338/0.3705, allocations: 0.7932 MB / 0.7352 GB, free: 1.555 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3705, allocations: 8 kB / 0.7352 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3706, allocations: 3.938 kB / 0.7352 GB, free: 1.543 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.3706, allocations: 0 / 0.7352 GB, free: 1.543 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007599/0.3713, allocations: 91.94 kB / 0.7353 GB, free: 1.453 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3714, allocations: 0 / 0.7353 GB, free: 1.453 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.3719, allocations: 12 kB / 0.7353 GB, free: 1.441 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.587e-05/0.3719, allocations: 31.98 kB / 0.7353 GB, free: 1.41 MB / 0.545 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.0001614/0.3721, allocations: 125.7 kB / 0.7354 GB, free: 1.277 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.772e-05/0.3722, allocations: 7.906 kB / 0.7354 GB, free: 1.27 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002936/0.3751, allocations: 1.388 MB / 0.7368 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3751, allocations: 4 kB / 0.7368 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3751, allocations: 0 / 0.7368 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3752, allocations: 0 / 0.7368 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/0.3776, allocations: 1.806 MB / 0.7386 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3776, allocations: 3.969 kB / 0.7386 GB, free: 14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007272/0.3783, allocations: 115.9 kB / 0.7387 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3783, allocations: 4 kB / 0.7387 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.193e-05/0.3784, allocations: 31.94 kB / 0.7387 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3784, allocations: 4 kB / 0.7387 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3784, allocations: 3.938 kB / 0.7387 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.3804, allocations: 1.453 MB / 0.7401 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.406e-05/0.3805, allocations: 97.02 kB / 0.7402 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.3806, allocations: 11.94 kB / 0.7402 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.3811, allocations: 8 kB / 0.7402 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.3812, allocations: 47.95 kB / 0.7403 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.846e-05/0.3813, allocations: 24 kB / 0.7403 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.676e-05/0.3813, allocations: 83.28 kB / 0.7404 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3813, allocations: 0 / 0.7404 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004888/0.3818, allocations: 172 kB / 0.7406 GB, free: 11.92 MB / 0.5606 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.0004196/0.3822, allocations: 215.5 kB / 0.7408 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001152/0.3834, allocations: 0.7533 MB / 0.7415 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3834, allocations: 0 / 0.7415 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005676/0.384, allocations: 447.8 kB / 0.7419 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.3843, allocations: 18.81 kB / 0.7419 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00318/0.3875, allocations: 0.8122 MB / 0.7427 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.3877, allocations: 0.7142 MB / 0.7434 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001274/0.389, allocations: 293.5 kB / 0.7437 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004802/0.3895, allocations: 95.41 kB / 0.7438 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.3895, allocations: 0 / 0.7438 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of Templates: time 0.01323/0.4027, allocations: 11.19 MB / 0.7547 GB, free: 13.4 MB / 0.5762 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)