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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7859/0.7859, allocations: 143.4 MB / 159.2 MB, free: 4.852 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 188.5 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 447.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 107.8 kB / 0.517 GB, free: 3.715 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002003/0.002003, allocations: 285.3 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 83.86 kB / 0.6886 GB, free: 3.832 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4118/0.4138, allocations: 81.28 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001842/0.4157, allocations: 0.6784 MB / 0.7686 GB, free: 27 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.417, allocations: 1.285 MB / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.651e-05/0.4171, allocations: 0 / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.4171, allocations: 0 / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 2.839e-05/0.4171, allocations: 0 / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.4175, allocations: 55.81 kB / 0.7699 GB, free: 25.64 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 6.287e-05/0.4175, allocations: 19.98 kB / 0.7699 GB, free: 25.62 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.967e-05/0.4176, allocations: 4 kB / 0.7699 GB, free: 25.62 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.116e-05/0.4176, allocations: 11.97 kB / 0.7699 GB, free: 25.61 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.837e-05/0.4177, allocations: 15.92 kB / 0.7699 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.4177, allocations: 4 kB / 0.77 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001997/0.4179, allocations: 99.89 kB / 0.77 GB, free: 25.49 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.4179, allocations: 7.938 kB / 0.7701 GB, free: 25.48 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.906e-05/0.418, allocations: 11.92 kB / 0.7701 GB, free: 25.47 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.4181, allocations: 67.91 kB / 0.7701 GB, free: 25.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4181, allocations: 0 / 0.7701 GB, free: 25.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4181, allocations: 3.938 kB / 0.7701 GB, free: 25.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.4181, allocations: 0 / 0.7701 GB, free: 25.4 MB / 458.7 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.0003849/0.4185, allocations: 350.3 kB / 0.7705 GB, free: 25.01 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.4186, allocations: 8.031 kB / 0.7705 GB, free: 25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.721e-05/0.4186, allocations: 8.844 kB / 0.7705 GB, free: 25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.156e-05/0.4187, allocations: 164.3 kB / 0.7706 GB, free: 24.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.4187, allocations: 4.375 kB / 0.7706 GB, free: 24.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.4187, allocations: 4.375 kB / 0.7707 GB, free: 24.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.4189, allocations: 57.98 kB / 0.7707 GB, free: 24.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.4189, allocations: 0 / 0.7707 GB, free: 24.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.4189, allocations: 0 / 0.7707 GB, free: 24.73 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.4189, allocations: 4 kB / 0.7707 GB, free: 24.72 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.219e-05/0.419, allocations: 23.98 kB / 0.7707 GB, free: 24.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.4191, allocations: 165.6 kB / 0.7709 GB, free: 24.49 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.894e-05/0.4192, allocations: 62.48 kB / 0.7709 GB, free: 24.42 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.658e-05/0.4193, allocations: 24.86 kB / 0.771 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003318/0.4196, allocations: 0.5583 MB / 0.7715 GB, free: 23.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.4196, allocations: 38.5 kB / 0.7716 GB, free: 23.66 MB / 458.7 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.4196, allocations: 0 / 0.7716 GB, free: 23.66 MB / 458.7 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.0175/0.4371, allocations: 4.31 MB / 0.7758 GB, free: 19.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.4372, allocations: 59.41 kB / 0.7758 GB, free: 19.13 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.21e-05/0.4373, allocations: 89.86 kB / 0.7759 GB, free: 19.04 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.4373, allocations: 25.7 kB / 0.7759 GB, free: 19 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.364e-05/0.4373, allocations: 88.12 kB / 0.776 GB, free: 18.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.096e-05/0.4374, allocations: 55.19 kB / 0.7761 GB, free: 18.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/0.4377, allocations: 93.67 kB / 0.7762 GB, free: 18.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.002e-05/0.4377, allocations: 322.8 kB / 0.7765 GB, free: 18.44 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004255/0.4381, allocations: 315.9 kB / 0.7768 GB, free: 18.13 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000421/0.4386, allocations: 311.8 kB / 0.7771 GB, free: 17.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.4398, allocations: 0.7557 MB / 0.7778 GB, free: 17.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.4398, allocations: 0 / 0.7778 GB, free: 17.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001318/0.4411, allocations: 0.788 MB / 0.7786 GB, free: 16.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4411, allocations: 4 kB / 0.7786 GB, free: 16.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4411, allocations: 0 / 0.7786 GB, free: 16.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.4412, allocations: 0 / 0.7786 GB, free: 16.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007976/0.442, allocations: 99.88 kB / 0.7787 GB, free: 16.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.442, allocations: 0 / 0.7787 GB, free: 16.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005182/0.4425, allocations: 12 kB / 0.7787 GB, free: 16.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.539e-05/0.4426, allocations: 31.98 kB / 0.7787 GB, free: 16.13 MB / 458.7 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.0001404/0.4427, allocations: 121.8 kB / 0.7788 GB, free: 16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-05/0.4428, allocations: 7.906 kB / 0.7788 GB, free: 15.99 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.4458, allocations: 1.388 MB / 0.7802 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4458, allocations: 7.984 kB / 0.7802 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4458, allocations: 0 / 0.7802 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4459, allocations: 4 kB / 0.7802 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002322/0.4482, allocations: 1.817 MB / 0.782 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4482, allocations: 4 kB / 0.782 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000756/0.449, allocations: 103.9 kB / 0.7821 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.449, allocations: 0 / 0.7821 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.59e-05/0.449, allocations: 35.94 kB / 0.7821 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.4491, allocations: 0 / 0.7821 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4491, allocations: 3.938 kB / 0.7821 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00424/0.4533, allocations: 3.027 MB / 0.7851 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.34e-05/0.4533, allocations: 92.98 kB / 0.7852 GB, free: 9.293 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/0.4534, allocations: 4 kB / 0.7852 GB, free: 9.289 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005147/0.4539, allocations: 16 kB / 0.7852 GB, free: 9.273 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.4541, allocations: 43.89 kB / 0.7852 GB, free: 9.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.519e-05/0.4542, allocations: 32 kB / 0.7853 GB, free: 9.199 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.958e-05/0.4542, allocations: 83.31 kB / 0.7853 GB, free: 9.117 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4542, allocations: 0 / 0.7853 GB, free: 9.117 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000586/0.4548, allocations: 176 kB / 0.7855 GB, free: 8.945 MB / 458.7 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.0004167/0.4552, allocations: 220.2 kB / 0.7857 GB, free: 8.719 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0009965/0.4562, allocations: 0.7299 MB / 0.7864 GB, free: 7.988 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4562, allocations: 0 / 0.7864 GB, free: 7.988 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005103/0.4567, allocations: 455.8 kB / 0.7869 GB, free: 7.543 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.4571, allocations: 20 kB / 0.7869 GB, free: 7.523 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003278/0.4603, allocations: 1.067 MB / 0.7879 GB, free: 6.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.4605, allocations: 0.73 MB / 0.7886 GB, free: 5.652 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001395/0.4619, allocations: 294.5 kB / 0.7889 GB, free: 5.367 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005633/0.4625, allocations: 95.41 kB / 0.789 GB, free: 5.273 MB / 458.7 MB Notification: Performance of SimCode: time 8.12e-07/0.4625, allocations: 0 / 0.789 GB, free: 5.273 MB / 458.7 MB Notification: Performance of Templates: time 0.0145/0.477, allocations: 11.22 MB / 0.8 GB, free: 10.11 MB / 474.7 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)