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.001247/0.001247, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 197.4 kB / 16.64 MB, free: 6.453 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.231/1.231, allocations: 205.1 MB / 222.5 MB, free: 4.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.591/1.591, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001374/0.001374, allocations: 72.28 kB / 0.6723 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2051, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001731/0.2069, allocations: 0.6209 MB / 0.7847 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001472/0.2083, allocations: 1.315 MB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.114e-05/0.2084, allocations: 0 / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.212e-05/0.2084, allocations: 0 / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.236e-05/0.2084, allocations: 0 / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.2088, allocations: 67.75 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.45e-05/0.2089, allocations: 19.98 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.649e-05/0.2089, allocations: 7.969 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.175e-05/0.209, allocations: 19.94 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.069e-05/0.209, allocations: 11.92 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.209, allocations: 0 / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.2093, allocations: 103.8 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.2093, allocations: 0 / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.41e-05/0.2093, allocations: 15.92 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.2095, allocations: 67.84 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2095, allocations: 0 / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2095, allocations: 0 / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.2095, allocations: 0 / 0.7863 GB, free: 10.49 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.0004328/0.2099, allocations: 357.9 kB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.21, allocations: 8.031 kB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.21, allocations: 8.844 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.2101, allocations: 160.4 kB / 0.7868 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.2102, allocations: 4.375 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.2102, allocations: 384 / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.2103, allocations: 61.92 kB / 0.7869 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2103, allocations: 0 / 0.7869 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.2103, allocations: 8 kB / 0.7869 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.2103, allocations: 0 / 0.7869 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.489e-05/0.2104, allocations: 23.98 kB / 0.7869 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.2106, allocations: 169.5 kB / 0.7871 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.2107, allocations: 58.56 kB / 0.7871 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.108e-05/0.2107, allocations: 24.86 kB / 0.7872 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004686/0.2112, allocations: 0.5622 MB / 0.7877 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.2113, allocations: 42.44 kB / 0.7878 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.2113, allocations: 0 / 0.7878 GB, free: 8.73 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.01849/0.2298, allocations: 4.303 MB / 0.792 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.2298, allocations: 51.41 kB / 0.792 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.933e-05/0.2299, allocations: 93.86 kB / 0.7921 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.788e-05/0.23, allocations: 29.7 kB / 0.7921 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.43e-05/0.23, allocations: 84.12 kB / 0.7922 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.628e-05/0.2301, allocations: 55.2 kB / 0.7923 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002356/0.2303, allocations: 89.67 kB / 0.7923 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.2305, allocations: 326.9 kB / 0.7927 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004986/0.231, allocations: 307.9 kB / 0.793 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004902/0.2315, allocations: 314.4 kB / 0.7933 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.2329, allocations: 0.7507 MB / 0.794 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2329, allocations: 0 / 0.794 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00149/0.2344, allocations: 0.7941 MB / 0.7948 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.2344, allocations: 6.969 kB / 0.7948 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2345, allocations: 0 / 0.7948 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.2345, allocations: 7.875 kB / 0.7948 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007932/0.2353, allocations: 95.94 kB / 0.7949 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.2353, allocations: 4 kB / 0.7949 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005103/0.2358, allocations: 12 kB / 0.7949 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.569e-05/0.2359, allocations: 35.97 kB / 0.7949 GB, free: 1.199 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.0001771/0.2361, allocations: 125.7 kB / 0.795 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.2362, allocations: 4 kB / 0.795 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002975/0.2391, allocations: 1.388 MB / 0.7964 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.2392, allocations: 4 kB / 0.7964 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2392, allocations: 0 / 0.7964 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.2392, allocations: 3.984 kB / 0.7964 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.242, allocations: 1.806 MB / 0.7982 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.242, allocations: 0 / 0.7982 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007639/0.2428, allocations: 115.9 kB / 0.7983 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.2428, allocations: 0 / 0.7983 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.112e-05/0.2429, allocations: 31.94 kB / 0.7983 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2429, allocations: 0 / 0.7983 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2429, allocations: 3.984 kB / 0.7983 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.2451, allocations: 1.454 MB / 0.7997 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.2452, allocations: 88.98 kB / 0.7998 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.132e-05/0.2453, allocations: 19.98 kB / 0.7998 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005109/0.2458, allocations: 12 kB / 0.7998 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.246, allocations: 43.91 kB / 0.7999 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.518e-05/0.246, allocations: 28 kB / 0.7999 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 3.464e-05/0.2461, allocations: 79.28 kB / 0.8 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2461, allocations: 0 / 0.8 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005332/0.2466, allocations: 176 kB / 0.8002 GB, free: 11.71 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.0004624/0.2471, allocations: 219.5 kB / 0.8004 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001202/0.2483, allocations: 0.7261 MB / 0.8011 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2483, allocations: 0 / 0.8011 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006461/0.249, allocations: 455.7 kB / 0.8015 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.2493, allocations: 12 kB / 0.8015 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003331/0.2526, allocations: 0.7958 MB / 0.8023 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.2529, allocations: 0.7259 MB / 0.803 GB, free: 8.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00102/0.2539, allocations: 298.4 kB / 0.8033 GB, free: 8.441 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005089/0.2545, allocations: 95.41 kB / 0.8034 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of SimCode: time 4.11e-07/0.2545, allocations: 0 / 0.8034 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of Templates: time 0.01546/0.2699, allocations: 11.19 MB / 0.8143 GB, free: 13.22 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)