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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.055/2.055, allocations: 391.2 MB / 407 MB, free: 10.85 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 195.4 kB / 499.1 MB, free: 4.641 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 0.7948 GB, free: 15.83 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 105.3 kB / 0.9329 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0009628/0.0009631, allocations: 57.19 kB / 1.081 GB, free: 218 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2209, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001519/0.2224, allocations: 0.6722 MB / 1.219 GB, free: 116.6 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001143/0.2236, allocations: 1.284 MB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.298e-05/0.2236, allocations: 0 / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 1.406e-05/0.2236, allocations: 0 / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 2.223e-05/0.2236, allocations: 0 / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.2239, allocations: 63.81 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 4.682e-05/0.224, allocations: 19.92 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 3.713e-05/0.224, allocations: 4 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 1.715e-05/0.224, allocations: 15.97 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.2241, allocations: 15.92 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.2241, allocations: 4 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.2243, allocations: 95.89 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.2243, allocations: 4 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 2.15e-05/0.2243, allocations: 11.92 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.2244, allocations: 71.86 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2244, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of FrontEnd: time 8.82e-07/0.2244, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.635e-06/0.2244, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 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.0003127/0.2248, allocations: 349.5 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.2248, allocations: 15.98 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.035e-05/0.2248, allocations: 0.9375 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.902e-05/0.2249, allocations: 172.3 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.2249, allocations: 12.38 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.828e-05/0.2249, allocations: 4.375 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.096e-05/0.225, allocations: 50 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.2251, allocations: 7.938 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-06/0.2251, allocations: 0 / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2251, allocations: 0 / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.137e-05/0.2251, allocations: 27.91 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001097/0.2252, allocations: 169.5 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.861e-05/0.2253, allocations: 70.5 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.221e-05/0.2254, allocations: 28.84 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002983/0.2257, allocations: 0.5544 MB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.2257, allocations: 34.5 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.2257, allocations: 0 / 1.222 GB, free: 113.2 MB / 0.823 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.01674/0.2425, allocations: 4.373 MB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.072e-05/0.2425, allocations: 55.41 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.512e-05/0.2426, allocations: 89.86 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 4.935e-05/0.2426, allocations: 37.83 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 1.665e-05/0.2426, allocations: 84.12 kB / 1.226 GB, free: 108.4 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 8.601e-05/0.2427, allocations: 59.09 kB / 1.226 GB, free: 108.3 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.2429, allocations: 89.67 kB / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.458e-05/0.243, allocations: 326.8 kB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004205/0.2434, allocations: 307.8 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.2438, allocations: 309.4 kB / 1.227 GB, free: 107.3 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.245, allocations: 0.7748 MB / 1.228 GB, free: 106.5 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.245, allocations: 3.938 kB / 1.228 GB, free: 106.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001236/0.2463, allocations: 0.8029 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2463, allocations: 5.094 kB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2463, allocations: 4 kB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.2463, allocations: 0 / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007407/0.2471, allocations: 95.88 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.2471, allocations: 0 / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.2476, allocations: 12 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.151e-05/0.2477, allocations: 31.97 kB / 1.229 GB, free: 105.6 MB / 0.823 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.0001294/0.2478, allocations: 126.4 kB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.924e-05/0.2479, allocations: 7.906 kB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002876/0.2508, allocations: 1.397 MB / 1.23 GB, free: 104 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.2508, allocations: 4 kB / 1.231 GB, free: 104 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.2508, allocations: 0 / 1.231 GB, free: 104 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2508, allocations: 7.984 kB / 1.231 GB, free: 104 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002365/0.2532, allocations: 1.817 MB / 1.232 GB, free: 102.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.2532, allocations: 4 kB / 1.232 GB, free: 102.2 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.2539, allocations: 111.9 kB / 1.232 GB, free: 102 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2539, allocations: 0 / 1.232 GB, free: 102 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.557e-05/0.254, allocations: 31.94 kB / 1.232 GB, free: 102 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.254, allocations: 0 / 1.232 GB, free: 102 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.254, allocations: 0 / 1.232 GB, free: 102 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004041/0.2581, allocations: 3.043 MB / 1.235 GB, free: 98.83 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.2581, allocations: 92.95 kB / 1.235 GB, free: 98.72 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.205e-05/0.2582, allocations: 8 kB / 1.235 GB, free: 98.71 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004917/0.2587, allocations: 12 kB / 1.236 GB, free: 98.7 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.2588, allocations: 39.91 kB / 1.236 GB, free: 98.66 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.2589, allocations: 35.98 kB / 1.236 GB, free: 98.62 MB / 0.823 GB Notification: Performance of sorting global known variables: time 1.635e-05/0.2589, allocations: 79.22 kB / 1.236 GB, free: 98.55 MB / 0.823 GB Notification: Performance of sort global known variables: time 1e-07/0.2589, allocations: 0 / 1.236 GB, free: 98.55 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0005313/0.2594, allocations: 176.2 kB / 1.236 GB, free: 98.38 MB / 0.823 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.0004096/0.2599, allocations: 239 kB / 1.236 GB, free: 98.13 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0009803/0.2608, allocations: 0.7223 MB / 1.237 GB, free: 97.41 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2609, allocations: 3.938 kB / 1.237 GB, free: 97.41 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.000499/0.2614, allocations: 451.8 kB / 1.237 GB, free: 96.96 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.2616, allocations: 23.92 kB / 1.237 GB, free: 96.94 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003017/0.2647, allocations: 1.071 MB / 1.238 GB, free: 95.83 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.2648, allocations: 0.734 MB / 1.239 GB, free: 95.07 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.001247/0.266, allocations: 293.5 kB / 1.239 GB, free: 94.78 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004942/0.2665, allocations: 91.41 kB / 1.239 GB, free: 94.69 MB / 0.823 GB Notification: Performance of SimCode: time 3.3e-07/0.2666, allocations: 0 / 1.239 GB, free: 94.69 MB / 0.823 GB Notification: Performance of Templates: time 0.01103/0.2776, allocations: 11.24 MB / 1.25 GB, free: 83.5 MB / 0.823 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 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)