Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001598/0.001598, allocations: 106.4 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.001827/0.001828, allocations: 190 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.457/1.457, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.731/2.731, allocations: 469.8 MB / 0.743 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.001901, allocations: 65.06 kB / 0.9092 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.321, allocations: 159.2 MB / 1.065 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001831/0.3228, allocations: 0.6166 MB / 1.065 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001637/0.3245, allocations: 1.275 MB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.414e-05/0.3245, allocations: 3.938 kB / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.635e-05/0.3245, allocations: 7.938 kB / 1.067 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 1.573e-05/0.3246, allocations: 0 / 1.067 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.3249, allocations: 75.73 kB / 1.067 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.77e-05/0.325, allocations: 15.98 kB / 1.067 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.265e-05/0.325, allocations: 11.98 kB / 1.067 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.172e-05/0.325, allocations: 11.98 kB / 1.067 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.617e-05/0.3251, allocations: 11.92 kB / 1.067 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.3251, allocations: 4 kB / 1.067 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.3253, allocations: 99.89 kB / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.529e-05/0.3254, allocations: 7.938 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.537e-05/0.3254, allocations: 19.86 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.3255, allocations: 63.91 kB / 1.067 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3255, allocations: 4 kB / 1.067 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3255, allocations: 0 / 1.067 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.304e-06/0.3256, allocations: 0 / 1.067 GB, free: 12.5 MB / 0.8419 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.0004351/0.326, allocations: 351.7 kB / 1.067 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.326, allocations: 12.62 kB / 1.067 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.3261, allocations: 8.844 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.3262, allocations: 168.3 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3262, allocations: 4.375 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.427e-05/0.3263, allocations: 8.375 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.3264, allocations: 46 kB / 1.067 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3264, allocations: 8 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.3264, allocations: 0 / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.3264, allocations: 0 / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.241e-05/0.3265, allocations: 27.91 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001824/0.3267, allocations: 165.7 kB / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000114/0.3268, allocations: 58.56 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.297e-05/0.3268, allocations: 24.84 kB / 1.068 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005191/0.3274, allocations: 0.5583 MB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.3274, allocations: 42.5 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.3274, allocations: 0 / 1.068 GB, free: 10.75 MB / 0.8419 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.02038/0.3478, allocations: 4.37 MB / 1.073 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.3479, allocations: 63.34 kB / 1.073 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.32e-05/0.348, allocations: 89.86 kB / 1.073 GB, free: 6.051 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.732e-05/0.348, allocations: 29.7 kB / 1.073 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.566e-05/0.3481, allocations: 88.08 kB / 1.073 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.3482, allocations: 51.19 kB / 1.073 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.3485, allocations: 93.67 kB / 1.073 GB, free: 5.777 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3486, allocations: 326.8 kB / 1.073 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005434/0.3491, allocations: 303.9 kB / 1.074 GB, free: 5.152 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005474/0.3497, allocations: 318.1 kB / 1.074 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.3515, allocations: 0.7702 MB / 1.075 GB, free: 4.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.3515, allocations: 0 / 1.075 GB, free: 4.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001635/0.3531, allocations: 0.8004 MB / 1.075 GB, free: 3.266 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3532, allocations: 4 kB / 1.075 GB, free: 3.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3532, allocations: 7.984 kB / 1.075 GB, free: 3.254 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3532, allocations: 0 / 1.075 GB, free: 3.254 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008575/0.354, allocations: 91.94 kB / 1.075 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.3541, allocations: 400 / 1.075 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005514/0.3546, allocations: 12 kB / 1.075 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.736e-05/0.3547, allocations: 31.98 kB / 1.075 GB, free: 3.121 MB / 0.8419 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.0002581/0.355, allocations: 125.7 kB / 1.076 GB, free: 2.988 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.3551, allocations: 7.906 kB / 1.076 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003488/0.3586, allocations: 1.403 MB / 1.077 GB, free: 1.57 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3586, allocations: 4 kB / 1.077 GB, free: 1.566 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3587, allocations: 0 / 1.077 GB, free: 1.566 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3587, allocations: 7.984 kB / 1.077 GB, free: 1.559 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4203/0.7789, allocations: 1.807 MB / 1.079 GB, free: 22.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.779, allocations: 0.6094 kB / 1.079 GB, free: 22.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009025/0.7799, allocations: 109.8 kB / 1.079 GB, free: 22.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.283e-06/0.7799, allocations: 2.688 kB / 1.079 GB, free: 22.48 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.956e-05/0.78, allocations: 32.8 kB / 1.079 GB, free: 22.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.78, allocations: 2.75 kB / 1.079 GB, free: 22.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.78, allocations: 0.75 kB / 1.079 GB, free: 22.48 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.7824, allocations: 1.461 MB / 1.08 GB, free: 22.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.016e-05/0.7824, allocations: 96.48 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.346e-05/0.7825, allocations: 11.14 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005699/0.7831, allocations: 9.844 kB / 1.08 GB, free: 21.99 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.7833, allocations: 50.53 kB / 1.08 GB, free: 21.98 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-05/0.7833, allocations: 27.8 kB / 1.081 GB, free: 21.98 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 1.936e-05/0.7834, allocations: 79.75 kB / 1.081 GB, free: 21.91 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7834, allocations: 0 / 1.081 GB, free: 21.91 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005687/0.7839, allocations: 179.6 kB / 1.081 GB, free: 21.9 MB / 0.8419 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.0004514/0.7844, allocations: 228.1 kB / 1.081 GB, free: 21.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001237/0.7856, allocations: 0.7463 MB / 1.082 GB, free: 21.5 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7857, allocations: 1.219 kB / 1.082 GB, free: 21.5 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006015/0.7863, allocations: 454.6 kB / 1.082 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.7866, allocations: 17.92 kB / 1.082 GB, free: 21.3 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.7904, allocations: 0.8271 MB / 1.083 GB, free: 20.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.7906, allocations: 0.7175 MB / 1.084 GB, free: 20.23 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005297/0.7911, allocations: 94.7 kB / 1.084 GB, free: 20.22 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.7911, allocations: 1.062 kB / 1.084 GB, free: 20.22 MB / 0.8419 GB Notification: Performance of Templates: time 0.01247/0.8036, allocations: 6.885 MB / 1.09 GB, free: 19.86 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)