Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 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="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_10_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.001745/0.001745, allocations: 102.8 kB / 16.27 MB, free: 6.414 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.001879/0.001879, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.512/2.512, allocations: 437.1 MB / 0.711 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 72.08 kB / 0.8699 GB, free: 2.219 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3278, allocations: 151.6 MB / 1.018 GB, free: 10.65 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00194/0.3298, allocations: 0.6097 MB / 1.019 GB, free: 10.04 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001833/0.3316, allocations: 1.285 MB / 1.02 GB, free: 8.734 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.776e-05/0.3317, allocations: 0 / 1.02 GB, free: 8.734 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.3317, allocations: 3.938 kB / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 1.937e-05/0.3317, allocations: 3.938 kB / 1.02 GB, free: 8.727 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.3321, allocations: 75.73 kB / 1.02 GB, free: 8.652 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.428e-05/0.3322, allocations: 19.97 kB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.921e-05/0.3322, allocations: 4 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.175e-05/0.3323, allocations: 7.984 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.418e-05/0.3323, allocations: 19.92 kB / 1.02 GB, free: 8.602 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.3324, allocations: 4 kB / 1.02 GB, free: 8.598 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002314/0.3326, allocations: 99.89 kB / 1.02 GB, free: 8.5 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.943e-05/0.3326, allocations: 11.92 kB / 1.02 GB, free: 8.488 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.783e-05/0.3327, allocations: 15.92 kB / 1.02 GB, free: 8.473 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.3328, allocations: 63.86 kB / 1.02 GB, free: 8.41 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3328, allocations: 0 / 1.02 GB, free: 8.41 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3328, allocations: 0 / 1.02 GB, free: 8.41 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.3329, allocations: 3.984 kB / 1.02 GB, free: 8.406 MB / 0.795 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.0004771/0.3333, allocations: 351.8 kB / 1.02 GB, free: 8.016 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3334, allocations: 12.03 kB / 1.021 GB, free: 8.004 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.3334, allocations: 0.9375 kB / 1.021 GB, free: 8.004 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.3336, allocations: 176.2 kB / 1.021 GB, free: 7.793 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.3336, allocations: 4.375 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.3336, allocations: 4.375 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.3338, allocations: 54 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3338, allocations: 0 / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.3338, allocations: 0 / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3338, allocations: 7.984 kB / 1.021 GB, free: 7.719 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.655e-05/0.3339, allocations: 23.98 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002029/0.3341, allocations: 161.7 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.3342, allocations: 62.56 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.321e-05/0.3343, allocations: 28.84 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005599/0.3348, allocations: 0.5583 MB / 1.022 GB, free: 6.699 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.3349, allocations: 38.48 kB / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.3349, allocations: 0 / 1.022 GB, free: 6.652 MB / 0.795 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.02139/0.3563, allocations: 4.38 MB / 1.026 GB, free: 2.113 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.3564, allocations: 55.31 kB / 1.026 GB, free: 2.047 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.29e-05/0.3565, allocations: 97.84 kB / 1.026 GB, free: 1.941 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.272e-05/0.3565, allocations: 29.7 kB / 1.026 GB, free: 1.906 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.306e-05/0.3566, allocations: 80.14 kB / 1.026 GB, free: 1.824 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.3567, allocations: 55.2 kB / 1.026 GB, free: 1.77 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002556/0.357, allocations: 85.8 kB / 1.026 GB, free: 1.68 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3571, allocations: 330.8 kB / 1.027 GB, free: 1.348 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/0.3577, allocations: 307.8 kB / 1.027 GB, free: 1.047 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000572/0.3583, allocations: 311.9 kB / 1.027 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.36, allocations: 0.7727 MB / 1.028 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.36, allocations: 4 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001716/0.3618, allocations: 0.7904 MB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3618, allocations: 8 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3618, allocations: 4 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3618, allocations: 0 / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009019/0.3627, allocations: 99.88 kB / 1.029 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3628, allocations: 0 / 1.029 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.3633, allocations: 12 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.552e-05/0.3634, allocations: 35.97 kB / 1.029 GB, free: 15.01 MB / 0.8106 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.0002057/0.3636, allocations: 120.2 kB / 1.029 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.173e-05/0.3637, allocations: 7.906 kB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003566/0.3673, allocations: 1.399 MB / 1.03 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3673, allocations: 4 kB / 1.03 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3673, allocations: 4 kB / 1.03 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3674, allocations: 3.984 kB / 1.03 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.3706, allocations: 1.817 MB / 1.032 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.3707, allocations: 0 / 1.032 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008656/0.3715, allocations: 107.9 kB / 1.032 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.3716, allocations: 4 kB / 1.032 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.134e-05/0.3716, allocations: 31.92 kB / 1.032 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.3717, allocations: 0 / 1.032 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.3717, allocations: 4 kB / 1.032 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.3743, allocations: 1.465 MB / 1.034 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.951e-05/0.3744, allocations: 92.89 kB / 1.034 GB, free: 9.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3745, allocations: 15.92 kB / 1.034 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005633/0.375, allocations: 8 kB / 1.034 GB, free: 9.824 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.3752, allocations: 47.91 kB / 1.034 GB, free: 9.777 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.015e-05/0.3753, allocations: 28 kB / 1.034 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.477e-05/0.3753, allocations: 83.34 kB / 1.034 GB, free: 9.668 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3753, allocations: 0 / 1.034 GB, free: 9.668 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006209/0.376, allocations: 176 kB / 1.034 GB, free: 9.496 MB / 0.8106 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.0005782/0.3765, allocations: 227 kB / 1.034 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001415/0.378, allocations: 0.7501 MB / 1.035 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.378, allocations: 0 / 1.035 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007092/0.3787, allocations: 451.9 kB / 1.035 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.379, allocations: 24.47 kB / 1.036 GB, free: 8.055 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.3828, allocations: 0.8175 MB / 1.036 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.3831, allocations: 0.7181 MB / 1.037 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000562/0.3837, allocations: 95.41 kB / 1.037 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of SimCode: time 2.344e-06/0.3837, allocations: 0 / 1.037 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of Templates: time 0.01187/0.3956, allocations: 6.887 MB / 1.044 GB, free: 15.54 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)