Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001114/0.001114, 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.001324/0.001324, allocations: 193 kB / 16.13 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.67/1.67, allocations: 292.3 MB / 0.5484 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 69.25 kB / 0.6708 GB, free: 26.61 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2128, allocations: 114.6 MB / 0.7827 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001887/0.2147, allocations: 0.6742 MB / 0.7833 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2164, allocations: 1.324 MB / 0.7846 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.491e-05/0.2164, allocations: 0 / 0.7846 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.42e-05/0.2165, allocations: 0 / 0.7846 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.222e-05/0.2165, allocations: 0 / 0.7846 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003438/0.2168, allocations: 55.81 kB / 0.7847 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.95e-05/0.2169, allocations: 19.98 kB / 0.7847 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.166e-05/0.2169, allocations: 3.984 kB / 0.7847 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.272e-05/0.217, allocations: 19.92 kB / 0.7847 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.511e-05/0.217, allocations: 7.984 kB / 0.7847 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.2171, allocations: 4 kB / 0.7847 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002123/0.2173, allocations: 107.8 kB / 0.7848 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.244e-05/0.2173, allocations: 0 / 0.7848 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.722e-05/0.2173, allocations: 19.91 kB / 0.7849 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.2175, allocations: 63.86 kB / 0.7849 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2175, allocations: 0 / 0.7849 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.11e-07/0.2175, allocations: 0 / 0.7849 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.2175, allocations: 0 / 0.7849 GB, free: 11.65 MB / 0.6075 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.0004186/0.2179, allocations: 351.8 kB / 0.7853 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.218, allocations: 12.03 kB / 0.7853 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.218, allocations: 8.844 kB / 0.7853 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.2181, allocations: 168.3 kB / 0.7854 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.2181, allocations: 384 / 0.7854 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.2182, allocations: 4.375 kB / 0.7854 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.2183, allocations: 57.98 kB / 0.7855 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2183, allocations: 0 / 0.7855 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.2183, allocations: 0 / 0.7855 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.2183, allocations: 4 kB / 0.7855 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.365e-05/0.2184, allocations: 27.98 kB / 0.7855 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.2186, allocations: 165.6 kB / 0.7857 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.2187, allocations: 62.48 kB / 0.7857 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.2187, allocations: 24.86 kB / 0.7858 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004759/0.2192, allocations: 0.5544 MB / 0.7863 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.2193, allocations: 46.48 kB / 0.7864 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.2193, allocations: 0 / 0.7864 GB, free: 9.895 MB / 0.6075 GB 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.02042/0.2397, allocations: 4.304 MB / 0.7906 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.2398, allocations: 55.41 kB / 0.7906 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.038e-05/0.2398, allocations: 93.86 kB / 0.7907 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.838e-05/0.2399, allocations: 29.7 kB / 0.7907 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.668e-05/0.2399, allocations: 80.14 kB / 0.7908 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.2401, allocations: 55.2 kB / 0.7909 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/0.2403, allocations: 89.66 kB / 0.7909 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.2404, allocations: 322.8 kB / 0.7913 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005352/0.241, allocations: 315.9 kB / 0.7916 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005109/0.2415, allocations: 318.8 kB / 0.7919 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.243, allocations: 0.7507 MB / 0.7926 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.243, allocations: 0 / 0.7926 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001508/0.2445, allocations: 0.7891 MB / 0.7934 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2445, allocations: 8 kB / 0.7934 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.2445, allocations: 0 / 0.7934 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.2446, allocations: 0 / 0.7934 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007863/0.2454, allocations: 95.88 kB / 0.7935 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.2454, allocations: 0 / 0.7935 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004768/0.2459, allocations: 12 kB / 0.7935 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.734e-05/0.246, allocations: 35.98 kB / 0.7935 GB, free: 2.367 MB / 0.6075 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.0002088/0.2462, allocations: 121.8 kB / 0.7936 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.889e-05/0.2463, allocations: 7.922 kB / 0.7936 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003463/0.2497, allocations: 1.387 MB / 0.795 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.2497, allocations: 4 kB / 0.795 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.2498, allocations: 3.984 kB / 0.795 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.2498, allocations: 11.94 kB / 0.795 GB, free: 0.8125 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002974/0.2528, allocations: 1.802 MB / 0.7968 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2528, allocations: 0 / 0.7968 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007894/0.2536, allocations: 111.9 kB / 0.7969 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.2536, allocations: 0 / 0.7969 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.2537, allocations: 27.94 kB / 0.7969 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.2537, allocations: 4 kB / 0.7969 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2537, allocations: 4 kB / 0.7969 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/0.2561, allocations: 1.469 MB / 0.7983 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.2562, allocations: 88.98 kB / 0.7984 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.758e-05/0.2563, allocations: 11.94 kB / 0.7984 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/0.2568, allocations: 8 kB / 0.7984 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.257, allocations: 47.95 kB / 0.7985 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.857e-05/0.257, allocations: 28 kB / 0.7985 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 4.155e-05/0.2571, allocations: 79.28 kB / 0.7986 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.2571, allocations: 160 / 0.7986 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006721/0.2578, allocations: 176 kB / 0.7988 GB, free: 12.87 MB / 0.6231 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.0006372/0.2584, allocations: 223.4 kB / 0.799 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001315/0.2597, allocations: 0.7261 MB / 0.7997 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2598, allocations: 0 / 0.7997 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006657/0.2604, allocations: 451.8 kB / 0.8001 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.2608, allocations: 12 kB / 0.8001 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.2639, allocations: 0.857 MB / 0.801 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.2642, allocations: 0.7184 MB / 0.8017 GB, free: 9.84 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001452/0.2657, allocations: 301.4 kB / 0.8019 GB, free: 9.547 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005605/0.2663, allocations: 99.34 kB / 0.802 GB, free: 9.449 MB / 0.6231 GB Notification: Performance of SimCode: time 4.1e-07/0.2663, allocations: 4 kB / 0.802 GB, free: 9.445 MB / 0.6231 GB Notification: Performance of Templates: time 0.01596/0.2823, allocations: 10.69 MB / 0.8125 GB, free: 14.82 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)