Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001399/0.001399, allocations: 104.7 kB / 15.98 MB, free: 6.344 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.001481/0.001481, allocations: 198 kB / 16.91 MB, free: 6.184 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.365/1.365, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.577/2.577, allocations: 469.4 MB / 0.7423 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 64.91 kB / 0.9083 GB, free: 14.47 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3063, allocations: 159.1 MB / 1.064 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00204/0.3084, allocations: 0.6891 MB / 1.064 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.31, allocations: 1.279 MB / 1.066 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.276e-05/0.3101, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.3101, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.143e-05/0.3102, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.3106, allocations: 67.83 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.506e-05/0.3106, allocations: 23.97 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.236e-05/0.3107, allocations: 3.984 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.664e-05/0.3107, allocations: 11.94 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.108e-05/0.3108, allocations: 15.98 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.3108, allocations: 0 / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.311, allocations: 99.88 kB / 1.066 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.611e-05/0.3111, allocations: 11.94 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.266e-05/0.3111, allocations: 7.922 kB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.3112, allocations: 55.92 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3112, allocations: 4 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3112, allocations: 0 / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.3112, allocations: 0 / 1.066 GB, free: 13.07 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.0004502/0.3117, allocations: 343.9 kB / 1.066 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3117, allocations: 8.625 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.715e-05/0.3118, allocations: 8.844 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.3119, allocations: 172.2 kB / 1.066 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.312, allocations: 384 / 1.066 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.312, allocations: 12.38 kB / 1.066 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.3121, allocations: 50 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.3122, allocations: 7.922 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.3122, allocations: 7.984 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3122, allocations: 4 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.007e-05/0.3123, allocations: 19.98 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002048/0.3125, allocations: 161.7 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.3126, allocations: 58.5 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.156e-05/0.3127, allocations: 28.84 kB / 1.067 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000523/0.3132, allocations: 0.5583 MB / 1.067 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.3132, allocations: 46.48 kB / 1.067 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.3133, allocations: 0 / 1.067 GB, free: 11.32 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.02119/0.3344, allocations: 4.36 MB / 1.072 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.3345, allocations: 55.41 kB / 1.072 GB, free: 6.73 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.656e-05/0.3346, allocations: 97.84 kB / 1.072 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 8.14e-05/0.3347, allocations: 25.83 kB / 1.072 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.3347, allocations: 84.14 kB / 1.072 GB, free: 6.508 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.3349, allocations: 55.2 kB / 1.072 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000268/0.3352, allocations: 93.67 kB / 1.072 GB, free: 6.355 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3353, allocations: 318.8 kB / 1.072 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005421/0.3358, allocations: 315.8 kB / 1.073 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.3364, allocations: 318.1 kB / 1.073 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.3379, allocations: 0.7663 MB / 1.074 GB, free: 4.648 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.338, allocations: 3.938 kB / 1.074 GB, free: 4.645 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001855/0.3398, allocations: 0.8003 MB / 1.074 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.3399, allocations: 4 kB / 1.074 GB, free: 3.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.3399, allocations: 3.984 kB / 1.074 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3399, allocations: 0 / 1.074 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008699/0.3408, allocations: 95.89 kB / 1.075 GB, free: 3.738 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.3408, allocations: 0 / 1.075 GB, free: 3.738 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005543/0.3414, allocations: 4 kB / 1.075 GB, free: 3.734 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.543e-05/0.3415, allocations: 39.97 kB / 1.075 GB, free: 3.695 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.0002141/0.3417, allocations: 117.8 kB / 1.075 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.164e-05/0.3418, allocations: 11.91 kB / 1.075 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.3453, allocations: 1.404 MB / 1.076 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3453, allocations: 4 kB / 1.076 GB, free: 2.145 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3453, allocations: 0 / 1.076 GB, free: 2.145 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.3453, allocations: 3.984 kB / 1.076 GB, free: 2.141 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.3484, allocations: 1.813 MB / 1.078 GB, free: 276 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3484, allocations: 0 / 1.078 GB, free: 276 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008084/0.3492, allocations: 107.9 kB / 1.078 GB, free: 168 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.3492, allocations: 4.031 kB / 1.078 GB, free: 164 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-05/0.3493, allocations: 35.86 kB / 1.078 GB, free: 128 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3493, allocations: 4 kB / 1.078 GB, free: 124 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3494, allocations: 0 / 1.078 GB, free: 124 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5807/0.93, allocations: 1.467 MB / 1.079 GB, free: 22.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.275e-05/0.9301, allocations: 89.48 kB / 1.08 GB, free: 22.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.787e-05/0.9302, allocations: 8.609 kB / 1.08 GB, free: 22.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005703/0.9308, allocations: 14.77 kB / 1.08 GB, free: 22.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.931, allocations: 40.81 kB / 1.08 GB, free: 22.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.515e-05/0.9311, allocations: 31.42 kB / 1.08 GB, free: 22.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 2.909e-05/0.9311, allocations: 82.08 kB / 1.08 GB, free: 22.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.9311, allocations: 2.125 kB / 1.08 GB, free: 22.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007582/0.9319, allocations: 176.8 kB / 1.08 GB, free: 22.71 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.0005557/0.9324, allocations: 224.7 kB / 1.08 GB, free: 22.6 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.9338, allocations: 0.7407 MB / 1.081 GB, free: 22.3 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.9338, allocations: 1.656 kB / 1.081 GB, free: 22.3 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006443/0.9345, allocations: 451.3 kB / 1.081 GB, free: 22.12 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.9348, allocations: 20.91 kB / 1.081 GB, free: 22.11 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.9382, allocations: 0.8832 MB / 1.082 GB, free: 21.67 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.9384, allocations: 0.7209 MB / 1.083 GB, free: 20.97 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005879/0.939, allocations: 94.64 kB / 1.083 GB, free: 20.96 MB / 0.8419 GB Notification: Performance of SimCode: time 1.082e-06/0.939, allocations: 0.7812 kB / 1.083 GB, free: 20.96 MB / 0.8419 GB Notification: Performance of Templates: time 0.01518/0.9542, allocations: 6.897 MB / 1.09 GB, free: 20.6 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)