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.001076/0.001076, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001061/0.001061, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.264/1.264, allocations: 222.9 MB / 241 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.002068/0.002068, allocations: 288.5 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9023/0.9023, allocations: 169.3 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002537/0.002537, allocations: 99.11 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1638, allocations: 86.96 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001719/0.1656, allocations: 0.6062 MB / 0.6822 GB, free: 6.836 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1669, allocations: 1.287 MB / 0.6835 GB, free: 5.531 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.141e-05/0.167, allocations: 0 / 0.6835 GB, free: 5.531 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.214e-05/0.167, allocations: 3.938 kB / 0.6835 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.955e-05/0.167, allocations: 4 kB / 0.6835 GB, free: 5.523 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.1674, allocations: 78.72 kB / 0.6835 GB, free: 5.449 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.532e-05/0.1674, allocations: 19.98 kB / 0.6836 GB, free: 5.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.1675, allocations: 7.984 kB / 0.6836 GB, free: 5.422 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.068e-05/0.1675, allocations: 11.94 kB / 0.6836 GB, free: 5.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.064e-05/0.1676, allocations: 11.97 kB / 0.6836 GB, free: 5.398 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.1676, allocations: 4 kB / 0.6836 GB, free: 5.395 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.1678, allocations: 103.8 kB / 0.6837 GB, free: 5.293 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.557e-05/0.1678, allocations: 7.922 kB / 0.6837 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.41e-05/0.1679, allocations: 15.94 kB / 0.6837 GB, free: 5.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.168, allocations: 67.84 kB / 0.6838 GB, free: 5.203 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.168, allocations: 0 / 0.6838 GB, free: 5.203 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.168, allocations: 0 / 0.6838 GB, free: 5.203 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.168, allocations: 0 / 0.6838 GB, free: 5.203 MB / 494.1 MB 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.0003999/0.1684, allocations: 355.4 kB / 0.6841 GB, free: 4.809 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.1685, allocations: 8.031 kB / 0.6841 GB, free: 4.801 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.1685, allocations: 12.84 kB / 0.6841 GB, free: 4.789 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.961e-05/0.1686, allocations: 164.4 kB / 0.6843 GB, free: 4.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1686, allocations: 4.375 kB / 0.6843 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.1687, allocations: 4.375 kB / 0.6843 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.1688, allocations: 65.89 kB / 0.6844 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.1688, allocations: 0 / 0.6844 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.1688, allocations: 8 kB / 0.6844 GB, free: 4.504 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1688, allocations: 0 / 0.6844 GB, free: 4.504 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.738e-05/0.1689, allocations: 19.98 kB / 0.6844 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.1691, allocations: 161.7 kB / 0.6846 GB, free: 4.277 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.1692, allocations: 66.55 kB / 0.6846 GB, free: 4.203 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.606e-05/0.1692, allocations: 20.86 kB / 0.6846 GB, free: 4.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004377/0.1697, allocations: 0.5544 MB / 0.6852 GB, free: 3.496 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.1697, allocations: 46.44 kB / 0.6852 GB, free: 3.441 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.1697, allocations: 4 kB / 0.6852 GB, free: 3.438 MB / 494.1 MB 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.2823/0.452, allocations: 4.361 MB / 0.6895 GB, free: 18.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.4521, allocations: 54.27 kB / 0.6895 GB, free: 17.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.659e-05/0.4521, allocations: 92.67 kB / 0.6896 GB, free: 17.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.94e-05/0.4522, allocations: 31.95 kB / 0.6897 GB, free: 17.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.227e-05/0.4522, allocations: 80.14 kB / 0.6897 GB, free: 17.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.79e-05/0.4523, allocations: 55.7 kB / 0.6898 GB, free: 17.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002401/0.4525, allocations: 89.23 kB / 0.6899 GB, free: 17.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.889e-05/0.4526, allocations: 321.8 kB / 0.6902 GB, free: 17.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004843/0.4531, allocations: 308 kB / 0.6905 GB, free: 17.36 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.4536, allocations: 314.2 kB / 0.6908 GB, free: 17.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/0.455, allocations: 0.7771 MB / 0.6915 GB, free: 16.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.455, allocations: 0 / 0.6915 GB, free: 16.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001404/0.4564, allocations: 0.7939 MB / 0.6923 GB, free: 16.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.4564, allocations: 7.703 kB / 0.6923 GB, free: 16.56 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.4564, allocations: 4.312 kB / 0.6923 GB, free: 16.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4564, allocations: 1.5 kB / 0.6923 GB, free: 16.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007622/0.4572, allocations: 91.38 kB / 0.6924 GB, free: 16.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.4572, allocations: 6.562 kB / 0.6924 GB, free: 16.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004363/0.4577, allocations: 11.23 kB / 0.6924 GB, free: 16.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.235e-05/0.4578, allocations: 34.73 kB / 0.6925 GB, free: 16.56 MB / 494.1 MB 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.000142/0.4579, allocations: 125.4 kB / 0.6926 GB, free: 16.44 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-05/0.458, allocations: 12.08 kB / 0.6926 GB, free: 16.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.4607, allocations: 1.391 MB / 0.6939 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4608, allocations: 4.703 kB / 0.6939 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4608, allocations: 0 / 0.6939 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.4608, allocations: 5.828 kB / 0.694 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.4634, allocations: 1.817 MB / 0.6957 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4634, allocations: 4.516 kB / 0.6957 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007064/0.4641, allocations: 109.3 kB / 0.6958 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.4641, allocations: 3.406 kB / 0.6958 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-05/0.4642, allocations: 25.19 kB / 0.6959 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.4642, allocations: 3.953 kB / 0.6959 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4642, allocations: 1.25 kB / 0.6959 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.4663, allocations: 1.469 MB / 0.6973 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.339e-05/0.4664, allocations: 98.98 kB / 0.6974 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.278e-05/0.4665, allocations: 6.344 kB / 0.6974 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004349/0.4669, allocations: 10.44 kB / 0.6974 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.467, allocations: 46.44 kB / 0.6975 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.466e-05/0.4671, allocations: 33.08 kB / 0.6975 GB, free: 13.97 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.845e-05/0.4671, allocations: 80.98 kB / 0.6976 GB, free: 13.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4672, allocations: 0 / 0.6976 GB, free: 13.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005428/0.4677, allocations: 177.5 kB / 0.6977 GB, free: 13.89 MB / 494.1 MB 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.0004375/0.4681, allocations: 227.7 kB / 0.698 GB, free: 13.77 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.4693, allocations: 0.7234 MB / 0.6987 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4693, allocations: 0 / 0.6987 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006487/0.47, allocations: 455.1 kB / 0.6991 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.4703, allocations: 11.94 kB / 0.6991 GB, free: 13.27 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/0.4733, allocations: 0.8142 MB / 0.6999 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.4735, allocations: 0.7156 MB / 0.7006 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009391/0.4744, allocations: 294.5 kB / 0.7009 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005536/0.475, allocations: 93.44 kB / 0.701 GB, free: 12.04 MB / 494.1 MB Notification: Performance of SimCode: time 2.9e-07/0.475, allocations: 0 / 0.701 GB, free: 12.04 MB / 494.1 MB Notification: Performance of Templates: time 0.01758/0.4926, allocations: 11.25 MB / 0.7119 GB, free: 9.93 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)