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.000992/0.0009921, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.000972/0.000972, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.24/1.24, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002047/0.002047, allocations: 284.6 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8957/0.8957, allocations: 169.2 MB / 0.499 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 95.86 kB / 0.6822 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3603, allocations: 86.98 MB / 0.7671 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00168/0.362, allocations: 0.6003 MB / 0.7677 GB, free: 10.19 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.3634, allocations: 1.289 MB / 0.769 GB, free: 9.148 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.241e-05/0.3634, allocations: 0 / 0.769 GB, free: 9.148 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.3634, allocations: 0 / 0.769 GB, free: 9.148 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.145e-05/0.3635, allocations: 0 / 0.769 GB, free: 9.148 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003822/0.3639, allocations: 78.53 kB / 0.769 GB, free: 9.098 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.501e-05/0.3639, allocations: 26.91 kB / 0.7691 GB, free: 9.082 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.364, allocations: 2.469 kB / 0.7691 GB, free: 9.082 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.152e-05/0.364, allocations: 16.78 kB / 0.7691 GB, free: 9.07 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.486e-05/0.3641, allocations: 20.75 kB / 0.7691 GB, free: 9.055 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.3641, allocations: 1.312 kB / 0.7691 GB, free: 9.055 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.3643, allocations: 100.2 kB / 0.7692 GB, free: 9.004 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.231e-05/0.3643, allocations: 6.594 kB / 0.7692 GB, free: 9 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.3644, allocations: 14.53 kB / 0.7692 GB, free: 8.988 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.3645, allocations: 67.39 kB / 0.7693 GB, free: 8.949 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.3645, allocations: 0 / 0.7693 GB, free: 8.949 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3645, allocations: 1.094 kB / 0.7693 GB, free: 8.949 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.3645, allocations: 0 / 0.7693 GB, free: 8.949 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.0003337/0.3649, allocations: 355.3 kB / 0.7696 GB, free: 8.574 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3649, allocations: 9.312 kB / 0.7696 GB, free: 8.574 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.3649, allocations: 2.062 kB / 0.7696 GB, free: 8.574 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.288e-05/0.365, allocations: 161.9 kB / 0.7698 GB, free: 8.379 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.365, allocations: 10.19 kB / 0.7698 GB, free: 8.371 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.3651, allocations: 7.172 kB / 0.7698 GB, free: 8.367 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.3652, allocations: 53.84 kB / 0.7698 GB, free: 8.32 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3652, allocations: 0 / 0.7698 GB, free: 8.32 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.3652, allocations: 5.438 kB / 0.7698 GB, free: 8.316 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3652, allocations: 1.125 kB / 0.7699 GB, free: 8.316 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.791e-05/0.3653, allocations: 24.89 kB / 0.7699 GB, free: 8.305 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.3654, allocations: 169.6 kB / 0.77 GB, free: 8.098 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001044/0.3655, allocations: 64.69 kB / 0.7701 GB, free: 8.051 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.569e-05/0.3656, allocations: 27.69 kB / 0.7701 GB, free: 8.031 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003182/0.3659, allocations: 0.5581 MB / 0.7707 GB, free: 7.363 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.3659, allocations: 35.66 kB / 0.7707 GB, free: 7.32 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/0.3659, allocations: 1.375 kB / 0.7707 GB, free: 7.32 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.01864/0.3846, allocations: 4.373 MB / 0.775 GB, free: 4.852 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.002e-05/0.3846, allocations: 52.88 kB / 0.775 GB, free: 4.789 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.916e-05/0.3847, allocations: 91.58 kB / 0.7751 GB, free: 4.691 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.54e-05/0.3848, allocations: 30.98 kB / 0.7751 GB, free: 4.656 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 1.503e-05/0.3848, allocations: 81.94 kB / 0.7752 GB, free: 4.574 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3849, allocations: 62.88 kB / 0.7753 GB, free: 4.52 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/0.3851, allocations: 87.77 kB / 0.7754 GB, free: 4.484 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.278e-05/0.3852, allocations: 328.8 kB / 0.7757 GB, free: 4.156 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/0.3856, allocations: 305.8 kB / 0.776 GB, free: 4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/0.3861, allocations: 312.2 kB / 0.7763 GB, free: 3.84 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.3874, allocations: 0.7777 MB / 0.777 GB, free: 3.453 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3874, allocations: 1.531 kB / 0.777 GB, free: 3.453 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001345/0.3888, allocations: 0.7969 MB / 0.7778 GB, free: 3.055 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.3888, allocations: 5.281 kB / 0.7778 GB, free: 3.055 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3888, allocations: 0 / 0.7778 GB, free: 3.055 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3888, allocations: 1.156 kB / 0.7778 GB, free: 3.055 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008206/0.3897, allocations: 100.7 kB / 0.7779 GB, free: 3.031 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.3897, allocations: 0 / 0.7779 GB, free: 3.031 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005421/0.3902, allocations: 14.41 kB / 0.7779 GB, free: 3.023 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.46e-05/0.3903, allocations: 31.45 kB / 0.778 GB, free: 3.02 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.0001594/0.3905, allocations: 126.9 kB / 0.7781 GB, free: 2.891 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.867e-05/0.3906, allocations: 3.75 kB / 0.7781 GB, free: 2.891 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002778/0.3933, allocations: 1.396 MB / 0.7794 GB, free: 2.066 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.3934, allocations: 3.984 kB / 0.7794 GB, free: 2.062 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3934, allocations: 1.156 kB / 0.7794 GB, free: 2.062 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.3934, allocations: 97.69 kB / 0.7795 GB, free: 1.953 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.52e-05/0.3935, allocations: 10.09 kB / 0.7795 GB, free: 1.945 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005041/0.394, allocations: 12.97 kB / 0.7796 GB, free: 1.938 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3942, allocations: 42.34 kB / 0.7796 GB, free: 1.926 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001562/0.3957, allocations: 0.9891 MB / 0.7806 GB, free: 1.375 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002061/0.3978, allocations: 1.559 MB / 0.7821 GB, free: 456 kB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004929/0.3983, allocations: 421.7 kB / 0.7825 GB, free: 216 kB / 0.545 GB Notification: Performance of sorting global known variables: time 1.559e-05/0.3983, allocations: 80.53 kB / 0.7826 GB, free: 136 kB / 0.545 GB Notification: Performance of Backend: time 5.01e-07/0.3983, allocations: 0 / 0.7826 GB, free: 136 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001339/0.3997, allocations: 0.5559 MB / 0.7831 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of SimCode: time 0.0007193/0.4004, allocations: 0.7202 MB / 0.7838 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of Templates: time 0.01755/0.418, allocations: 11.5 MB / 0.795 GB, free: 9.316 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)