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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008898/0.0008899, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.006555/0.006556, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.728/1.728, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.676/1.676, allocations: 292.7 MB / 0.5502 GB, free: 14.44 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.0005461/0.0005462, allocations: 18.78 kB / 0.6744 GB, free: 25.93 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2677, allocations: 116.3 MB / 0.788 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.000778/0.2685, allocations: 359.4 kB / 0.7883 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00172/0.2702, allocations: 1.305 MB / 0.7896 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.781e-05/0.2703, allocations: 0 / 0.7896 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.217e-05/0.2703, allocations: 4 kB / 0.7896 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.435e-05/0.2703, allocations: 0 / 0.7896 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.2706, allocations: 55.81 kB / 0.7897 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.075e-05/0.2707, allocations: 15.98 kB / 0.7897 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.461e-05/0.2708, allocations: 4 kB / 0.7897 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.876e-05/0.2708, allocations: 15.92 kB / 0.7897 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.731e-05/0.2709, allocations: 15.97 kB / 0.7897 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.2709, allocations: 4 kB / 0.7897 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.2711, allocations: 91.91 kB / 0.7898 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.2711, allocations: 11.92 kB / 0.7898 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.38e-05/0.2712, allocations: 37.62 kB / 0.7899 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.2713, allocations: 63.86 kB / 0.7899 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2713, allocations: 0 / 0.7899 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.283e-06/0.2713, allocations: 0 / 0.7899 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.2713, allocations: 0 / 0.7899 GB, free: 9.449 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.0003987/0.2717, allocations: 343.7 kB / 0.7903 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.2718, allocations: 8.031 kB / 0.7903 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.494e-05/0.2718, allocations: 50.67 kB / 0.7903 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.659e-05/0.2719, allocations: 0.9375 kB / 0.7903 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.272, allocations: 164.4 kB / 0.7905 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.272, allocations: 384 / 0.7905 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.272, allocations: 8.375 kB / 0.7905 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.2721, allocations: 53.8 kB / 0.7905 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2722, allocations: 0 / 0.7905 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.2722, allocations: 4 kB / 0.7905 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.2722, allocations: 0 / 0.7905 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.651e-05/0.2723, allocations: 31.91 kB / 0.7906 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.2724, allocations: 169.6 kB / 0.7907 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.2726, allocations: 62.53 kB / 0.7908 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.528e-05/0.2726, allocations: 20.86 kB / 0.7908 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004579/0.2731, allocations: 0.5544 MB / 0.7913 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.2731, allocations: 46.48 kB / 0.7914 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 9.52e-07/0.2731, allocations: 0 / 0.7914 GB, free: 7.652 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.01843/0.2916, allocations: 4.218 MB / 0.7955 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/0.2916, allocations: 55.41 kB / 0.7956 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.53e-05/0.2917, allocations: 93.86 kB / 0.7957 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.337e-05/0.2917, allocations: 29.7 kB / 0.7957 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.704e-05/0.2918, allocations: 84.14 kB / 0.7958 GB, free: 3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.403e-05/0.2919, allocations: 59.12 kB / 0.7958 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.89e-05/0.292, allocations: 17.72 kB / 0.7958 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.2921, allocations: 326.8 kB / 0.7961 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004859/0.2926, allocations: 303.9 kB / 0.7964 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.2931, allocations: 311.8 kB / 0.7967 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.2945, allocations: 0.7546 MB / 0.7975 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.2945, allocations: 4.125 kB / 0.7975 GB, free: 1.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001426/0.296, allocations: 0.7894 MB / 0.7982 GB, free: 444 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.296, allocations: 8 kB / 0.7983 GB, free: 436 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.296, allocations: 0 / 0.7983 GB, free: 436 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.296, allocations: 0 / 0.7983 GB, free: 436 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000786/0.2968, allocations: 95.88 kB / 0.7983 GB, free: 340 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.2968, allocations: 0 / 0.7983 GB, free: 340 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005124/0.2974, allocations: 12 kB / 0.7984 GB, free: 328 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-05/0.2974, allocations: 35.97 kB / 0.7984 GB, free: 292 kB / 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.0001846/0.2976, allocations: 125.8 kB / 0.7985 GB, free: 156 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.2977, allocations: 0 / 0.7985 GB, free: 156 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00323/0.3009, allocations: 1.392 MB / 0.7999 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.301, allocations: 4 kB / 0.7999 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.301, allocations: 0 / 0.7999 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.301, allocations: 7.984 kB / 0.7999 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.3036, allocations: 1.806 MB / 0.8016 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3036, allocations: 0 / 0.8016 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007454/0.3044, allocations: 111.9 kB / 0.8017 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3044, allocations: 0 / 0.8017 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.546e-05/0.3044, allocations: 31.94 kB / 0.8018 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.3045, allocations: 4 kB / 0.8018 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.3045, allocations: 0 / 0.8018 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.3067, allocations: 1.461 MB / 0.8032 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.3067, allocations: 88.98 kB / 0.8033 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.701e-05/0.3068, allocations: 19.88 kB / 0.8033 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/0.3073, allocations: 11.98 kB / 0.8033 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3074, allocations: 43.97 kB / 0.8034 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.605e-05/0.3075, allocations: 28 kB / 0.8034 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 3.164e-05/0.3076, allocations: 75.34 kB / 0.8035 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3076, allocations: 4.094 kB / 0.8035 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005499/0.3081, allocations: 176 kB / 0.8036 GB, free: 10.79 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.002898/0.311, allocations: 2.116 MB / 0.8057 GB, free: 8.645 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001217/0.3123, allocations: 0.7262 MB / 0.8064 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3123, allocations: 0 / 0.8064 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006259/0.3129, allocations: 456 kB / 0.8068 GB, free: 7.473 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.3132, allocations: 16 kB / 0.8069 GB, free: 7.457 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007354/0.3206, allocations: 3.756 MB / 0.8105 GB, free: 3.621 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.3209, allocations: 0.7145 MB / 0.8112 GB, free: 2.883 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001385/0.3223, allocations: 297.5 kB / 0.8115 GB, free: 2.594 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005672/0.3229, allocations: 119.3 kB / 0.8116 GB, free: 2.477 MB / 0.6231 GB Notification: Performance of SimCode: time 6.41e-07/0.3229, allocations: 0 / 0.8116 GB, free: 2.477 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.3464, allocations: 11.89 MB / 0.8232 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/0.3466, allocations: 229.1 kB / 0.8235 GB, free: 6.547 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/2.084, allocations: 4.062 kB / 0.8235 GB, free: 6.543 MB / 0.6387 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)