Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001179/0.001179, allocations: 111.8 kB / 16.42 MB, free: 6.457 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.001204/0.001204, allocations: 190.7 kB / 17.35 MB, free: 5.719 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.234/1.234, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002057/0.002057, allocations: 289.8 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8825/0.8825, allocations: 169.3 MB / 0.499 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 99.84 kB / 0.6822 GB, free: 6.895 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3535, allocations: 86.98 MB / 0.7671 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001551/0.355, allocations: 0.6051 MB / 0.7677 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001373/0.3564, allocations: 1.287 MB / 0.769 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.048e-05/0.3565, allocations: 0 / 0.769 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.3565, allocations: 0 / 0.769 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 1.775e-05/0.3565, allocations: 3.938 kB / 0.769 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.3568, allocations: 71.73 kB / 0.769 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.983e-05/0.3569, allocations: 19.98 kB / 0.769 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.281e-05/0.3569, allocations: 15.97 kB / 0.7691 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.812e-05/0.357, allocations: 7.938 kB / 0.7691 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.923e-05/0.357, allocations: 15.92 kB / 0.7691 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.357, allocations: 4 kB / 0.7691 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.3572, allocations: 99.89 kB / 0.7692 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.584e-05/0.3573, allocations: 11.92 kB / 0.7692 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.075e-05/0.3573, allocations: 7.938 kB / 0.7692 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.3574, allocations: 75.83 kB / 0.7693 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3574, allocations: 0 / 0.7693 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3575, allocations: 4 kB / 0.7693 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.3575, allocations: 0 / 0.7693 GB, free: 1.641 MB / 0.5294 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.000393/0.3579, allocations: 351.1 kB / 0.7696 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.3579, allocations: 8.031 kB / 0.7696 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.12e-05/0.3579, allocations: 4.938 kB / 0.7696 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.976e-05/0.358, allocations: 164.3 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.3581, allocations: 8.375 kB / 0.7698 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.3581, allocations: 384 / 0.7698 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.3582, allocations: 61.98 kB / 0.7698 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3582, allocations: 0 / 0.7698 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.3582, allocations: 0 / 0.7698 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-06/0.3582, allocations: 4 kB / 0.7699 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.669e-05/0.3583, allocations: 19.98 kB / 0.7699 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001582/0.3585, allocations: 165.6 kB / 0.77 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 9.953e-05/0.3586, allocations: 70.48 kB / 0.7701 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.614e-05/0.3586, allocations: 24.86 kB / 0.7701 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000454/0.3591, allocations: 0.5583 MB / 0.7707 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.3591, allocations: 38.73 kB / 0.7707 GB, free: 15.89 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 2.404e-06/0.3591, allocations: 7.922 kB / 0.7707 GB, free: 15.89 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.01893/0.3781, allocations: 4.373 MB / 0.775 GB, free: 11.36 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.362e-05/0.3781, allocations: 51.41 kB / 0.775 GB, free: 11.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.041e-05/0.3782, allocations: 93.86 kB / 0.7751 GB, free: 11.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.354e-05/0.3782, allocations: 29.7 kB / 0.7751 GB, free: 11.16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.395e-05/0.3783, allocations: 82.06 kB / 0.7752 GB, free: 11.08 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.97e-05/0.3784, allocations: 63.11 kB / 0.7753 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.3786, allocations: 89.66 kB / 0.7754 GB, free: 10.93 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.522e-05/0.3787, allocations: 322.8 kB / 0.7757 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.3792, allocations: 307.8 kB / 0.776 GB, free: 10.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.3797, allocations: 318.4 kB / 0.7763 GB, free: 9.992 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.3812, allocations: 0.7701 MB / 0.777 GB, free: 9.219 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.3812, allocations: 0 / 0.777 GB, free: 9.219 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00147/0.3826, allocations: 0.8011 MB / 0.7778 GB, free: 8.414 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.3827, allocations: 12 kB / 0.7778 GB, free: 8.402 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3827, allocations: 0 / 0.7778 GB, free: 8.402 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3827, allocations: 0 / 0.7778 GB, free: 8.402 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008271/0.3835, allocations: 91.89 kB / 0.7779 GB, free: 8.312 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.3835, allocations: 3.938 kB / 0.7779 GB, free: 8.309 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005298/0.3841, allocations: 12 kB / 0.7779 GB, free: 8.297 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.741e-05/0.3842, allocations: 37.22 kB / 0.778 GB, free: 8.262 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.0001859/0.3843, allocations: 124.2 kB / 0.7781 GB, free: 8.133 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.876e-05/0.3844, allocations: 0 / 0.7781 GB, free: 8.133 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003021/0.3875, allocations: 1.4 MB / 0.7794 GB, free: 6.727 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3875, allocations: 3.984 kB / 0.7794 GB, free: 6.723 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3875, allocations: 4 kB / 0.7795 GB, free: 6.719 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/0.3875, allocations: 92.86 kB / 0.7795 GB, free: 6.609 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.272e-05/0.3876, allocations: 4 kB / 0.7795 GB, free: 6.605 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.3881, allocations: 15.94 kB / 0.7796 GB, free: 6.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.3883, allocations: 43.95 kB / 0.7796 GB, free: 6.547 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001662/0.39, allocations: 0.9861 MB / 0.7806 GB, free: 5.555 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002324/0.3923, allocations: 1.565 MB / 0.7821 GB, free: 3.973 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005397/0.3928, allocations: 419.9 kB / 0.7825 GB, free: 3.562 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.384e-05/0.3929, allocations: 75.28 kB / 0.7826 GB, free: 3.488 MB / 0.545 GB Notification: Performance of Backend: time 1.8e-07/0.3929, allocations: 0 / 0.7826 GB, free: 3.488 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001333/0.3942, allocations: 0.5606 MB / 0.7831 GB, free: 2.922 MB / 0.545 GB Notification: Performance of SimCode: time 0.0006997/0.3949, allocations: 0.7145 MB / 0.7838 GB, free: 2.152 MB / 0.545 GB Notification: Performance of Templates: time 0.01465/0.4096, allocations: 11.51 MB / 0.7951 GB, free: 6.742 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)