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.001273/0.001273, allocations: 106.1 kB / 16.27 MB, free: 6.414 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.001276/0.001276, allocations: 189.8 kB / 17.2 MB, free: 5.953 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 / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00208/0.00208, allocations: 284.7 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8904/0.8904, allocations: 169.3 MB / 0.4988 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 104.3 kB / 0.5959 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1649, allocations: 86.97 MB / 0.6809 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001852/0.1668, allocations: 0.6034 MB / 0.6814 GB, free: 7.559 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.1684, allocations: 1.283 MB / 0.6827 GB, free: 6.258 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.376e-05/0.1684, allocations: 0 / 0.6827 GB, free: 6.258 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.41e-05/0.1685, allocations: 3.938 kB / 0.6827 GB, free: 6.254 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.208e-05/0.1685, allocations: 0 / 0.6827 GB, free: 6.254 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004115/0.1689, allocations: 79.72 kB / 0.6828 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.69e-05/0.169, allocations: 19.92 kB / 0.6828 GB, free: 6.156 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.439e-05/0.169, allocations: 4 kB / 0.6828 GB, free: 6.152 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.509e-05/0.1691, allocations: 11.98 kB / 0.6828 GB, free: 6.141 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.556e-05/0.1691, allocations: 19.91 kB / 0.6828 GB, free: 6.121 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.1691, allocations: 8 kB / 0.6828 GB, free: 6.113 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002244/0.1694, allocations: 91.91 kB / 0.6829 GB, free: 6.023 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.1694, allocations: 7.984 kB / 0.6829 GB, free: 6.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.541e-05/0.1694, allocations: 15.86 kB / 0.6829 GB, free: 6 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.1696, allocations: 71.86 kB / 0.683 GB, free: 5.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1696, allocations: 0 / 0.683 GB, free: 5.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1696, allocations: 0 / 0.683 GB, free: 5.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1696, allocations: 0 / 0.683 GB, free: 5.93 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.0004365/0.1701, allocations: 351.8 kB / 0.6833 GB, free: 5.539 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.1701, allocations: 12.03 kB / 0.6834 GB, free: 5.527 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.1701, allocations: 4.844 kB / 0.6834 GB, free: 5.523 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.1703, allocations: 168.3 kB / 0.6835 GB, free: 5.32 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.1703, allocations: 8.375 kB / 0.6835 GB, free: 5.312 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.1703, allocations: 4.375 kB / 0.6835 GB, free: 5.309 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.1704, allocations: 50 kB / 0.6836 GB, free: 5.254 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.1705, allocations: 4 kB / 0.6836 GB, free: 5.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1705, allocations: 0 / 0.6836 GB, free: 5.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1705, allocations: 3.938 kB / 0.6836 GB, free: 5.246 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.454e-05/0.1705, allocations: 31.91 kB / 0.6836 GB, free: 5.215 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.1707, allocations: 165.7 kB / 0.6838 GB, free: 5.004 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.1708, allocations: 58.56 kB / 0.6838 GB, free: 4.938 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.208e-05/0.1709, allocations: 28.84 kB / 0.6839 GB, free: 4.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000466/0.1714, allocations: 0.5583 MB / 0.6844 GB, free: 4.219 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.1714, allocations: 34.5 kB / 0.6844 GB, free: 4.176 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.1714, allocations: 0 / 0.6844 GB, free: 4.176 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.2729/0.4443, allocations: 4.384 MB / 0.6887 GB, free: 18.17 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.4444, allocations: 59.75 kB / 0.6888 GB, free: 18.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.404e-05/0.4445, allocations: 93.5 kB / 0.6889 GB, free: 18.01 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.186e-05/0.4445, allocations: 32.73 kB / 0.6889 GB, free: 17.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.272e-05/0.4445, allocations: 80.89 kB / 0.689 GB, free: 17.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.4447, allocations: 55.94 kB / 0.689 GB, free: 17.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002739/0.4449, allocations: 91.55 kB / 0.6891 GB, free: 17.87 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.663e-05/0.445, allocations: 321.1 kB / 0.6894 GB, free: 17.55 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004958/0.4455, allocations: 310.4 kB / 0.6897 GB, free: 17.55 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/0.446, allocations: 311 kB / 0.69 GB, free: 17.55 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.4475, allocations: 0.7725 MB / 0.6908 GB, free: 17.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.4475, allocations: 0 / 0.6908 GB, free: 17.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001464/0.449, allocations: 0.7973 MB / 0.6916 GB, free: 16.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.449, allocations: 6.375 kB / 0.6916 GB, free: 16.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.449, allocations: 3.75 kB / 0.6916 GB, free: 16.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.449, allocations: 3.625 kB / 0.6916 GB, free: 16.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008476/0.4499, allocations: 93.53 kB / 0.6917 GB, free: 16.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.4499, allocations: 0.9688 kB / 0.6917 GB, free: 16.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005313/0.4504, allocations: 9.672 kB / 0.6917 GB, free: 16.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.892e-05/0.4505, allocations: 34.72 kB / 0.6917 GB, free: 16.9 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.0001617/0.4507, allocations: 124.3 kB / 0.6918 GB, free: 16.78 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.569e-05/0.4508, allocations: 14.45 kB / 0.6918 GB, free: 16.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003147/0.4539, allocations: 1.392 MB / 0.6932 GB, free: 16.19 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.454, allocations: 5 kB / 0.6932 GB, free: 16.19 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/0.454, allocations: 4.875 kB / 0.6932 GB, free: 16.19 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.454, allocations: 1.781 kB / 0.6932 GB, free: 16.19 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.4567, allocations: 1.809 MB / 0.695 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.207e-06/0.4567, allocations: 1.125 kB / 0.695 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008006/0.4575, allocations: 108.6 kB / 0.6951 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.4575, allocations: 6.438 kB / 0.6951 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.4576, allocations: 27.45 kB / 0.6951 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.4576, allocations: 2.812 kB / 0.6951 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4576, allocations: 1.031 kB / 0.6951 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/0.4597, allocations: 1.475 MB / 0.6965 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.68e-05/0.4598, allocations: 94.47 kB / 0.6966 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.027e-05/0.4599, allocations: 7.234 kB / 0.6966 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005168/0.4604, allocations: 10.81 kB / 0.6967 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.4605, allocations: 42.61 kB / 0.6967 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-05/0.4606, allocations: 31.84 kB / 0.6967 GB, free: 14.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.867e-05/0.4606, allocations: 84.75 kB / 0.6968 GB, free: 14.21 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.4606, allocations: 0.9375 kB / 0.6968 GB, free: 14.21 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005652/0.4612, allocations: 182.1 kB / 0.697 GB, free: 14.2 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.0004649/0.4617, allocations: 227.7 kB / 0.6972 GB, free: 14.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.4629, allocations: 0.7346 MB / 0.6979 GB, free: 13.78 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4629, allocations: 0 / 0.6979 GB, free: 13.78 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005879/0.4635, allocations: 451.7 kB / 0.6983 GB, free: 13.59 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.4639, allocations: 14.94 kB / 0.6984 GB, free: 13.58 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.4672, allocations: 0.8415 MB / 0.6992 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.4674, allocations: 0.7184 MB / 0.6999 GB, free: 12.47 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.4679, allocations: 98.36 kB / 0.7 GB, free: 12.46 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4679, allocations: 0 / 0.7 GB, free: 12.46 MB / 494.1 MB Notification: Performance of Templates: time 0.01397/0.4819, allocations: 6.892 MB / 0.7067 GB, free: 12 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)