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.001248/0.001248, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009286/0.009286, allocations: 170.2 kB / 16.27 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.559/1.559, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.667/1.667, allocations: 292.7 MB / 0.5502 GB, free: 14.49 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.0009679/0.000968, allocations: 17.53 kB / 0.6743 GB, free: 26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2394, allocations: 116.3 MB / 0.7879 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0006519/0.2401, allocations: 351.4 kB / 0.7882 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.2416, allocations: 1.301 MB / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.341e-05/0.2416, allocations: 0 / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.2417, allocations: 0 / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 1.953e-05/0.2417, allocations: 3.938 kB / 0.7895 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.242, allocations: 59.88 kB / 0.7896 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.391e-05/0.242, allocations: 15.98 kB / 0.7896 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.533e-05/0.2421, allocations: 4 kB / 0.7896 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.2421, allocations: 15.92 kB / 0.7896 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.547e-05/0.2421, allocations: 11.97 kB / 0.7896 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.2422, allocations: 4 kB / 0.7896 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.2424, allocations: 91.91 kB / 0.7897 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.502e-05/0.2424, allocations: 15.92 kB / 0.7897 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.2424, allocations: 37.62 kB / 0.7898 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.2425, allocations: 67.86 kB / 0.7898 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2426, allocations: 0 / 0.7898 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2426, allocations: 0 / 0.7898 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.636e-06/0.2426, allocations: 0 / 0.7898 GB, free: 9.594 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.0003579/0.2429, allocations: 339.8 kB / 0.7901 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.243, allocations: 8.031 kB / 0.7901 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.038e-05/0.243, allocations: 12.78 kB / 0.7902 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.759e-05/0.2431, allocations: 168.3 kB / 0.7903 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.2431, allocations: 8.375 kB / 0.7903 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.2432, allocations: 4.375 kB / 0.7903 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.2433, allocations: 50 kB / 0.7904 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2433, allocations: 4 kB / 0.7904 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2433, allocations: 0 / 0.7904 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2433, allocations: 0 / 0.7904 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.274e-05/0.2434, allocations: 35.94 kB / 0.7904 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.2435, allocations: 161.7 kB / 0.7906 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.873e-05/0.2436, allocations: 62.5 kB / 0.7906 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.834e-05/0.2437, allocations: 28.84 kB / 0.7907 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000424/0.2441, allocations: 0.5505 MB / 0.7912 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.2442, allocations: 42.5 kB / 0.7912 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.2442, allocations: 0 / 0.7912 GB, free: 7.848 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.01956/0.2637, allocations: 4.218 MB / 0.7954 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.2638, allocations: 55.41 kB / 0.7954 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.834e-05/0.2639, allocations: 89.86 kB / 0.7955 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.618e-05/0.264, allocations: 29.7 kB / 0.7955 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.537e-05/0.264, allocations: 80.14 kB / 0.7956 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.2641, allocations: 55.2 kB / 0.7957 GB, free: 3.141 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.2643, allocations: 29.77 kB / 0.7957 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.2644, allocations: 322.8 kB / 0.796 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/0.2649, allocations: 311.8 kB / 0.7963 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004986/0.2654, allocations: 311.8 kB / 0.7966 GB, free: 2.172 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.2669, allocations: 0.7575 MB / 0.7973 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.2669, allocations: 0 / 0.7973 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00152/0.2684, allocations: 0.7826 MB / 0.7981 GB, free: 0.625 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2685, allocations: 4 kB / 0.7981 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2685, allocations: 4.938 kB / 0.7981 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.2685, allocations: 8 kB / 0.7981 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008269/0.2693, allocations: 95.88 kB / 0.7982 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2693, allocations: 0 / 0.7982 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005428/0.2699, allocations: 12 kB / 0.7982 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.772e-05/0.27, allocations: 27.98 kB / 0.7982 GB, free: 488 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.0001879/0.2702, allocations: 122.4 kB / 0.7983 GB, free: 356 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.596e-05/0.2702, allocations: 11.89 kB / 0.7984 GB, free: 344 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.2737, allocations: 1.392 MB / 0.7997 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.2738, allocations: 4 kB / 0.7997 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2738, allocations: 0 / 0.7997 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2738, allocations: 0 / 0.7997 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.2765, allocations: 1.802 MB / 0.8015 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2766, allocations: 0 / 0.8015 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/0.2774, allocations: 115.9 kB / 0.8016 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.2774, allocations: 4 kB / 0.8016 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.775e-05/0.2774, allocations: 27.94 kB / 0.8016 GB, free: 12.92 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2775, allocations: 4 kB / 0.8016 GB, free: 12.92 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2775, allocations: 0 / 0.8016 GB, free: 12.92 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/0.2798, allocations: 1.453 MB / 0.803 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.2798, allocations: 88.92 kB / 0.8031 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.289e-05/0.2799, allocations: 20 kB / 0.8032 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005503/0.2805, allocations: 11.94 kB / 0.8032 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.2806, allocations: 43.97 kB / 0.8032 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.761e-05/0.2807, allocations: 27.98 kB / 0.8032 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 3.272e-05/0.2807, allocations: 79.28 kB / 0.8033 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2807, allocations: 0 / 0.8033 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005891/0.2813, allocations: 172 kB / 0.8035 GB, free: 10.99 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.0004777/0.2818, allocations: 227.4 kB / 0.8037 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001161/0.283, allocations: 0.73 MB / 0.8044 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.283, allocations: 0 / 0.8044 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006491/0.2837, allocations: 451.8 kB / 0.8048 GB, free: 9.59 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.284, allocations: 16 kB / 0.8048 GB, free: 9.574 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/0.2875, allocations: 0.8584 MB / 0.8057 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.2878, allocations: 0.7184 MB / 0.8064 GB, free: 7.945 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001498/0.2893, allocations: 301.5 kB / 0.8067 GB, free: 7.652 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/0.2899, allocations: 87.41 kB / 0.8068 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of SimCode: time 7.22e-07/0.2899, allocations: 0 / 0.8068 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of Templates: time 0.01502/0.3049, allocations: 10.62 MB / 0.8171 GB, free: 13 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: