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.7582/0.7582, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.001171, allocations: 176.8 kB / 187.3 MB, free: 11.89 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.463/1.463, allocations: 221.3 MB / 441.4 MB, free: 4.625 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.0008874/0.0008876, allocations: 96.83 kB / 0.5124 GB, free: 24.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001743/0.001743, allocations: 278.7 kB / 0.5939 GB, free: 7.992 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.756e-05/3.758e-05, allocations: 11.98 kB / 0.6835 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4926/0.4926, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.6225, allocations: 109.1 MB / 0.8709 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.6228, allocations: 87.81 kB / 0.8709 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.007077/0.6299, allocations: 2.384 MB / 0.8733 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.364e-06/0.63, allocations: 0 / 0.8733 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.63, allocations: 4 kB / 0.8733 GB, free: 12.97 MB / 0.5417 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.0003749/0.6304, allocations: 347.8 kB / 0.8736 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.6304, allocations: 12.03 kB / 0.8736 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.6305, allocations: 4 kB / 0.8736 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.6306, allocations: 163.1 kB / 0.8738 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.6306, allocations: 7.953 kB / 0.8738 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.007e-05/0.6307, allocations: 7.906 kB / 0.8738 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.6308, allocations: 49.69 kB / 0.8738 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.6309, allocations: 3.984 kB / 0.8738 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.6309, allocations: 0 / 0.8738 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.6309, allocations: 0 / 0.8738 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.597e-05/0.631, allocations: 27.92 kB / 0.8739 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.6312, allocations: 173.6 kB / 0.874 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.6313, allocations: 54.58 kB / 0.8741 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.672e-05/0.6313, allocations: 28.81 kB / 0.8741 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004639/0.6318, allocations: 0.5583 MB / 0.8747 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.6319, allocations: 34.56 kB / 0.8747 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.123e-06/0.6319, allocations: 3.938 kB / 0.8747 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=17): time 0.0148/0.6467, allocations: 3.639 MB / 0.8783 GB, free: 7.453 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.6468, allocations: 51.41 kB / 0.8783 GB, free: 7.391 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.13e-05/0.6469, allocations: 93 kB / 0.8784 GB, free: 7.293 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.65e-05/0.647, allocations: 25.7 kB / 0.8784 GB, free: 7.262 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.171e-05/0.647, allocations: 80.14 kB / 0.8785 GB, free: 7.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.881e-05/0.6471, allocations: 55.17 kB / 0.8785 GB, free: 7.125 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.367e-05/0.6472, allocations: 4 kB / 0.8785 GB, free: 7.121 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6473, allocations: 326.9 kB / 0.8789 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004706/0.6478, allocations: 296 kB / 0.8791 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.6483, allocations: 305.4 kB / 0.8794 GB, free: 6.207 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006897/0.649, allocations: 359.8 kB / 0.8798 GB, free: 5.855 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.649, allocations: 3.938 kB / 0.8798 GB, free: 5.852 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001486/0.6505, allocations: 0.7679 MB / 0.8805 GB, free: 5.078 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.6505, allocations: 4.625 kB / 0.8805 GB, free: 5.074 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.6505, allocations: 0 / 0.8805 GB, free: 5.074 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.6506, allocations: 7.922 kB / 0.8805 GB, free: 5.066 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008456/0.6514, allocations: 87.95 kB / 0.8806 GB, free: 4.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.6514, allocations: 8 kB / 0.8806 GB, free: 4.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.6519, allocations: 8 kB / 0.8806 GB, free: 4.965 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.835e-05/0.652, allocations: 43.91 kB / 0.8807 GB, free: 4.922 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.6522, allocations: 112.9 kB / 0.8808 GB, free: 4.805 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.05e-05/0.6523, allocations: 0 / 0.8808 GB, free: 4.805 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.6558, allocations: 1.372 MB / 0.8821 GB, free: 3.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.6559, allocations: 11.94 kB / 0.8821 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.6559, allocations: 0 / 0.8821 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.6559, allocations: 3.984 kB / 0.8821 GB, free: 3.414 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/0.6591, allocations: 1.769 MB / 0.8839 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.6592, allocations: 0 / 0.8839 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.6599, allocations: 107.9 kB / 0.884 GB, free: 1.477 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-05/0.6599, allocations: 8.031 kB / 0.884 GB, free: 1.469 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.207e-05/0.66, allocations: 24 kB / 0.884 GB, free: 1.445 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.326e-06/0.66, allocations: 7.938 kB / 0.884 GB, free: 1.438 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.6601, allocations: 3.953 kB / 0.884 GB, free: 1.434 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.6624, allocations: 1.435 MB / 0.8854 GB, free: 15.97 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.234e-05/0.6625, allocations: 96.97 kB / 0.8855 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.447e-05/0.6625, allocations: 12 kB / 0.8855 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005241/0.6631, allocations: 15.95 kB / 0.8855 GB, free: 15.83 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.6632, allocations: 43.95 kB / 0.8856 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-05/0.6633, allocations: 32 kB / 0.8856 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.292e-05/0.6633, allocations: 75.28 kB / 0.8857 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6634, allocations: 0 / 0.8857 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.000648/0.664, allocations: 211.7 kB / 0.8859 GB, free: 15.47 MB / 0.5573 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005531/0.6646, allocations: 262.8 kB / 0.8861 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001155/0.6657, allocations: 0.6991 MB / 0.8868 GB, free: 14.51 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6657, allocations: 0 / 0.8868 GB, free: 14.51 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005993/0.6664, allocations: 440.2 kB / 0.8872 GB, free: 14.08 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.6666, allocations: 8 kB / 0.8872 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.6697, allocations: 0.7315 MB / 0.888 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.67, allocations: 0.7222 MB / 0.8887 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001403/0.6714, allocations: 299.5 kB / 0.8889 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005324/0.672, allocations: 91.41 kB / 0.889 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of SimCode: time 1.743e-06/0.672, allocations: 0 / 0.889 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of Templates: time 0.01542/0.6874, allocations: 10.12 MB / 0.8989 GB, free: 2.09 MB / 0.5573 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)