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.001336/0.001336, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001348/0.001348, allocations: 193.9 kB / 16.14 MB, free: 6.684 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.446/1.446, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002596/0.002596, allocations: 279.1 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.081/1.081, allocations: 178.6 MB / 0.5068 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004326/0.004326, allocations: 97.19 kB / 0.6057 GB, free: 25.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1772, allocations: 89.15 MB / 0.6928 GB, free: 4.82 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001897/0.1791, allocations: 0.6829 MB / 0.6935 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.1808, allocations: 1.289 MB / 0.6947 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.418e-05/0.1808, allocations: 0 / 0.6947 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.716e-05/0.1809, allocations: 0.7812 kB / 0.6947 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.145e-05/0.1809, allocations: 3.938 kB / 0.6947 GB, free: 2.832 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.1812, allocations: 64.27 kB / 0.6948 GB, free: 2.773 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.716e-05/0.1813, allocations: 19.98 kB / 0.6948 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.632e-05/0.1813, allocations: 0 / 0.6948 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.32e-05/0.1813, allocations: 12.66 kB / 0.6948 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.369e-05/0.1814, allocations: 15.92 kB / 0.6948 GB, free: 2.727 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.1814, allocations: 4 kB / 0.6948 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.1817, allocations: 99.88 kB / 0.6949 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.829e-05/0.1817, allocations: 8 kB / 0.6949 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.352e-05/0.1817, allocations: 15.86 kB / 0.695 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.1819, allocations: 63.91 kB / 0.695 GB, free: 2.539 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1819, allocations: 0 / 0.695 GB, free: 2.539 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1819, allocations: 4 kB / 0.695 GB, free: 2.535 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.1819, allocations: 0 / 0.695 GB, free: 2.535 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.0004804/0.1824, allocations: 363.6 kB / 0.6954 GB, free: 2.133 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1824, allocations: 8.031 kB / 0.6954 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.102e-05/0.1825, allocations: 0.9375 kB / 0.6954 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.1826, allocations: 164.4 kB / 0.6955 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1826, allocations: 4.375 kB / 0.6955 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.1826, allocations: 4.375 kB / 0.6955 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.1828, allocations: 57.98 kB / 0.6956 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1828, allocations: 0 / 0.6956 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.1828, allocations: 0 / 0.6956 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1828, allocations: 0 / 0.6956 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.899e-05/0.1829, allocations: 31.92 kB / 0.6956 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001943/0.1831, allocations: 169.6 kB / 0.6958 GB, free: 1.609 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.1832, allocations: 58.55 kB / 0.6959 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.901e-05/0.1833, allocations: 28.8 kB / 0.6959 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005559/0.1838, allocations: 0.5622 MB / 0.6964 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.1839, allocations: 34.5 kB / 0.6965 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.1839, allocations: 0 / 0.6965 GB, free: 0.7773 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.02118/0.2051, allocations: 4.387 MB / 0.7007 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.2052, allocations: 55.41 kB / 0.7008 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.798e-05/0.2053, allocations: 89.86 kB / 0.7009 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.6e-05/0.2054, allocations: 33.64 kB / 0.7009 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.885e-05/0.2054, allocations: 80.14 kB / 0.701 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.2055, allocations: 59.11 kB / 0.701 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.2058, allocations: 93.66 kB / 0.7011 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.206, allocations: 318.9 kB / 0.7014 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005952/0.2066, allocations: 311.9 kB / 0.7017 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/0.2072, allocations: 311.9 kB / 0.702 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.2088, allocations: 0.7684 MB / 0.7028 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2088, allocations: 0 / 0.7028 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001702/0.2105, allocations: 0.8044 MB / 0.7036 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.2105, allocations: 4 kB / 0.7036 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2106, allocations: 0 / 0.7036 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.2106, allocations: 0 / 0.7036 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008132/0.2114, allocations: 95.89 kB / 0.7037 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2114, allocations: 3.984 kB / 0.7037 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004675/0.2119, allocations: 12 kB / 0.7037 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.76e-05/0.212, allocations: 31.98 kB / 0.7037 GB, free: 9.148 MB / 0.4981 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.0002114/0.2122, allocations: 125.7 kB / 0.7038 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-05/0.2123, allocations: 4 kB / 0.7038 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.2158, allocations: 1.391 MB / 0.7052 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.2159, allocations: 7.984 kB / 0.7052 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2159, allocations: 4 kB / 0.7052 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2159, allocations: 3.938 kB / 0.7052 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003155/0.2191, allocations: 1.817 MB / 0.707 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.2191, allocations: 0 / 0.707 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007735/0.2199, allocations: 111.9 kB / 0.7071 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.2199, allocations: 0 / 0.7071 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-05/0.22, allocations: 31.92 kB / 0.7071 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.22, allocations: 4 kB / 0.7071 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.22, allocations: 1.016 kB / 0.7071 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.2226, allocations: 1.468 MB / 0.7086 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.776e-05/0.2227, allocations: 92.98 kB / 0.7087 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.2228, allocations: 11.94 kB / 0.7087 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.2232, allocations: 12 kB / 0.7087 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.2234, allocations: 39.97 kB / 0.7087 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.034e-05/0.2235, allocations: 31.98 kB / 0.7087 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.139e-05/0.2236, allocations: 79.34 kB / 0.7088 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2236, allocations: 0 / 0.7088 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006129/0.2242, allocations: 180 kB / 0.709 GB, free: 3.633 MB / 0.4981 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.0005426/0.2247, allocations: 231 kB / 0.7092 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001395/0.2261, allocations: 0.7267 MB / 0.7099 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2261, allocations: 0 / 0.7099 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007593/0.2269, allocations: 455.7 kB / 0.7104 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.2273, allocations: 16 kB / 0.7104 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003318/0.2306, allocations: 0.8491 MB / 0.7112 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.231, allocations: 0.7184 MB / 0.7119 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001492/0.2325, allocations: 289.5 kB / 0.7122 GB, free: 316 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006023/0.2331, allocations: 91.41 kB / 0.7123 GB, free: 224 kB / 0.4981 GB Notification: Performance of SimCode: time 3.9e-07/0.2331, allocations: 4 kB / 0.7123 GB, free: 220 kB / 0.4981 GB Notification: Performance of Templates: time 0.01818/0.2513, allocations: 10.73 MB / 0.7227 GB, free: 5.582 MB / 0.5137 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)