Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 87.58 kB / 20.45 MB, free: 4.121 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 161 kB / 23.82 MB, free: 0.7539 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9135/0.9135, allocations: 177.1 MB / 204.2 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.819/1.819, allocations: 377.8 MB / 0.6236 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 0.8116 GB, free: 1.672 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.685e-05/1.806e-05, allocations: 6.25 kB / 0.8116 GB, free: 1.664 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001011/0.001029, allocations: 0.6288 MB / 0.8122 GB, free: 1.055 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.00136/0.002389, allocations: 1.348 MB / 0.8135 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.174e-05/0.002411, allocations: 1.219 kB / 0.8135 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.152e-05/0.002433, allocations: 7.938 kB / 0.8135 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.647e-05/0.002459, allocations: 0 / 0.8135 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.00279, allocations: 84.47 kB / 0.8136 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 5.588e-05/0.002846, allocations: 17.11 kB / 0.8136 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.411e-05/0.00288, allocations: 4 kB / 0.8136 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 3.332e-05/0.002914, allocations: 19.97 kB / 0.8137 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.219e-05/0.002976, allocations: 13.45 kB / 0.8137 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.002989, allocations: 0 / 0.8137 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002116/0.0032, allocations: 111.8 kB / 0.8138 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.258e-05/0.003213, allocations: 7.984 kB / 0.8138 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.635e-05/0.003229, allocations: 5.531 kB / 0.8138 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.003376, allocations: 95.69 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.003379, allocations: 0 / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.02e-07/0.00338, allocations: 0 / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.003385, allocations: 1.281 kB / 0.8139 GB, free: 15.34 MB / 0.7761 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.0003783/0.003763, allocations: 380.1 kB / 0.8142 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.003801, allocations: 12.03 kB / 0.8143 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.003846, allocations: 11.02 kB / 0.8143 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.975e-05/0.003925, allocations: 108.6 kB / 0.8144 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.003938, allocations: 4.375 kB / 0.8144 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.003962, allocations: 8.375 kB / 0.8144 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.004066, allocations: 73.2 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.004076, allocations: 192 / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.004085, allocations: 4.375 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.004093, allocations: 3.938 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.933e-05/0.004143, allocations: 25.22 kB / 0.8145 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.004257, allocations: 116.6 kB / 0.8146 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.673e-05/0.004354, allocations: 59.73 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.582e-05/0.00439, allocations: 23.91 kB / 0.8147 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001731/0.004563, allocations: 34.56 kB / 0.8147 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.004587, allocations: 49.31 kB / 0.8148 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.004588, allocations: 0 / 0.8148 GB, free: 14.32 MB / 0.7761 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.01078/0.01537, allocations: 5.555 MB / 0.8202 GB, free: 8.695 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.0154, allocations: 55.41 kB / 0.8202 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.359e-05/0.01546, allocations: 149.9 kB / 0.8204 GB, free: 8.465 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.865e-05/0.01552, allocations: 29.7 kB / 0.8204 GB, free: 8.43 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 2.945e-05/0.01555, allocations: 130.9 kB / 0.8205 GB, free: 8.297 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.357e-05/0.01564, allocations: 59.44 kB / 0.8206 GB, free: 8.238 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.01579, allocations: 99.31 kB / 0.8207 GB, free: 8.133 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.01589, allocations: 496.1 kB / 0.8212 GB, free: 7.637 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.01629, allocations: 460 kB / 0.8216 GB, free: 7.188 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.01668, allocations: 471.9 kB / 0.822 GB, free: 6.727 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.01776, allocations: 1.07 MB / 0.8231 GB, free: 5.652 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.01776, allocations: 0 / 0.8231 GB, free: 5.652 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001112/0.01887, allocations: 1.109 MB / 0.8242 GB, free: 4.539 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.01889, allocations: 8 kB / 0.8242 GB, free: 4.531 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.01889, allocations: 4 kB / 0.8242 GB, free: 4.527 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.0189, allocations: 0 / 0.8242 GB, free: 4.527 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.01928, allocations: 91.94 kB / 0.8243 GB, free: 4.438 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.01928, allocations: 0 / 0.8243 GB, free: 4.438 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002013/0.01948, allocations: 15.94 kB / 0.8243 GB, free: 4.422 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.201e-05/0.01954, allocations: 35.98 kB / 0.8243 GB, free: 4.387 MB / 0.7761 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.000126/0.01966, allocations: 160.5 kB / 0.8245 GB, free: 4.219 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.862e-05/0.01974, allocations: 19.89 kB / 0.8245 GB, free: 4.199 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001915/0.02165, allocations: 1.333 MB / 0.8258 GB, free: 2.863 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.02166, allocations: 4 kB / 0.8258 GB, free: 2.859 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.02166, allocations: 0 / 0.8258 GB, free: 2.859 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.02167, allocations: 0 / 0.8258 GB, free: 2.859 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.02335, allocations: 1.634 MB / 0.8274 GB, free: 1.176 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.02335, allocations: 0 / 0.8274 GB, free: 1.176 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003618/0.02371, allocations: 107.9 kB / 0.8275 GB, free: 1.07 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.02371, allocations: 0 / 0.8275 GB, free: 1.07 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.672e-05/0.02376, allocations: 32 kB / 0.8275 GB, free: 1.039 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.02376, allocations: 3.984 kB / 0.8275 GB, free: 1.035 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.02376, allocations: 0 / 0.8275 GB, free: 1.035 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.02515, allocations: 1.333 MB / 0.8288 GB, free: 15.68 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 1.392e-05/0.02516, allocations: 23.84 kB / 0.8289 GB, free: 15.65 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.02522, allocations: 7.984 kB / 0.8289 GB, free: 15.64 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.02543, allocations: 12 kB / 0.8289 GB, free: 15.63 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.02553, allocations: 47.89 kB / 0.8289 GB, free: 15.59 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.02558, allocations: 24 kB / 0.8289 GB, free: 15.56 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 3.058e-05/0.02561, allocations: 127.2 kB / 0.8291 GB, free: 15.44 MB / 0.7917 GB Notification: Performance of sort global known variables: time 5e-08/0.02561, allocations: 0 / 0.8291 GB, free: 15.44 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0003821/0.02599, allocations: 187.6 kB / 0.8292 GB, free: 15.25 MB / 0.7917 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.000369/0.02636, allocations: 254.8 kB / 0.8295 GB, free: 15 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.0008389/0.0272, allocations: 0.8781 MB / 0.8303 GB, free: 14.11 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.0272, allocations: 0 / 0.8303 GB, free: 14.11 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0003844/0.02758, allocations: 411.4 kB / 0.8307 GB, free: 13.71 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.0278, allocations: 38.58 kB / 0.8308 GB, free: 13.67 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.02943, allocations: 0.7536 MB / 0.8315 GB, free: 12.88 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.364e-05/0.02948, allocations: 77.34 kB / 0.8316 GB, free: 12.79 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0009534/0.03043, allocations: 293.5 kB / 0.8319 GB, free: 12.5 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/0.03083, allocations: 96.47 kB / 0.832 GB, free: 12.41 MB / 0.7917 GB Notification: Performance of SimCode: time 6.51e-07/0.03083, allocations: 0 / 0.832 GB, free: 12.41 MB / 0.7917 GB Notification: Performance of Templates: time 0.01182/0.04265, allocations: 13.03 MB / 0.8447 GB, free: 15.45 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.985757221002132]