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.001562/0.001562, allocations: 104.2 kB / 19.74 MB, free: 2.066 MB / 14.72 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.001965/0.001965, allocations: 212.9 kB / 23.04 MB, free: 4.844 MB / 14.72 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 1.499/1.499, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.12/3.12, allocations: 0.49 GB / 0.7959 GB, free: 35.28 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 72.27 kB / 1.155 GB, free: 25.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3517, allocations: 176.1 MB / 1.327 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001735/0.3535, allocations: 0.6198 MB / 1.328 GB, free: 264 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001775/0.3552, allocations: 1.303 MB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.816e-05/0.3553, allocations: 0 / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.565e-05/0.3553, allocations: 7.938 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.086e-05/0.3553, allocations: 0 / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.3557, allocations: 83.66 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 6.56e-05/0.3558, allocations: 23.92 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.733e-05/0.3558, allocations: 3.984 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.158e-05/0.3559, allocations: 8 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.735e-05/0.3559, allocations: 15.92 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.3559, allocations: 4 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002867/0.3562, allocations: 111.9 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.699e-05/0.3562, allocations: 7.984 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.504e-05/0.3563, allocations: 11.94 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.3564, allocations: 75.72 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3564, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.285e-06/0.3564, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.3564, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 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.0004461/0.3569, allocations: 282.2 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.3569, allocations: 8.031 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.357, allocations: 4.938 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.3571, allocations: 114.5 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.3571, allocations: 384 / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.3571, allocations: 8.375 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.3572, allocations: 83.69 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3573, allocations: 3.938 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.3573, allocations: 0 / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.3573, allocations: 4 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.472e-05/0.3573, allocations: 19.98 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.3575, allocations: 121.2 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.3576, allocations: 62.44 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.492e-05/0.3577, allocations: 24.84 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002456/0.3579, allocations: 39.97 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.358, allocations: 38.56 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.358, allocations: 0 / 1.33 GB, free: 13.68 MB / 1.029 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.0192/0.3772, allocations: 4.166 MB / 1.334 GB, free: 9.414 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.3772, allocations: 51.41 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.84e-05/0.3773, allocations: 93.86 kB / 1.334 GB, free: 9.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.225e-05/0.3773, allocations: 25.7 kB / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4e-05/0.3774, allocations: 84.14 kB / 1.335 GB, free: 9.133 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.3775, allocations: 59.47 kB / 1.335 GB, free: 9.074 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.3778, allocations: 97.66 kB / 1.335 GB, free: 8.973 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3779, allocations: 318.9 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005535/0.3784, allocations: 319.8 kB / 1.335 GB, free: 8.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005468/0.379, allocations: 307.9 kB / 1.336 GB, free: 8.039 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.3806, allocations: 0.776 MB / 1.336 GB, free: 7.262 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3806, allocations: 3.938 kB / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001593/0.3821, allocations: 0.7999 MB / 1.337 GB, free: 6.453 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3822, allocations: 4 kB / 1.337 GB, free: 6.449 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3822, allocations: 0 / 1.337 GB, free: 6.449 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.3822, allocations: 0 / 1.337 GB, free: 6.449 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008379/0.383, allocations: 99.88 kB / 1.337 GB, free: 6.352 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.383, allocations: 4.062 kB / 1.337 GB, free: 6.348 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004963/0.3835, allocations: 12 kB / 1.337 GB, free: 6.336 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.184e-05/0.3836, allocations: 31.98 kB / 1.337 GB, free: 6.305 MB / 1.029 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.0001811/0.3838, allocations: 118.3 kB / 1.337 GB, free: 6.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.453e-05/0.3839, allocations: 7.984 kB / 1.337 GB, free: 6.172 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/0.3872, allocations: 1.407 MB / 1.339 GB, free: 4.75 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3872, allocations: 4 kB / 1.339 GB, free: 4.746 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3872, allocations: 0 / 1.339 GB, free: 4.746 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3872, allocations: 0 / 1.339 GB, free: 4.746 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003183/0.3904, allocations: 1.665 MB / 1.34 GB, free: 3.035 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3904, allocations: 0 / 1.34 GB, free: 3.035 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/0.3912, allocations: 107.9 kB / 1.34 GB, free: 2.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.3912, allocations: 4 kB / 1.34 GB, free: 2.926 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.211e-05/0.3912, allocations: 27.98 kB / 1.341 GB, free: 2.898 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3912, allocations: 0 / 1.341 GB, free: 2.898 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3913, allocations: 11.97 kB / 1.341 GB, free: 2.887 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.3937, allocations: 1.466 MB / 1.342 GB, free: 1.402 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.902e-05/0.3937, allocations: 23.86 kB / 1.342 GB, free: 1.379 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.4e-05/0.3938, allocations: 8 kB / 1.342 GB, free: 1.371 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004993/0.3943, allocations: 12 kB / 1.342 GB, free: 1.359 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.3945, allocations: 47.89 kB / 1.342 GB, free: 1.312 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-05/0.3945, allocations: 24 kB / 1.342 GB, free: 1.289 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.335e-05/0.3946, allocations: 79.28 kB / 1.342 GB, free: 1.211 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3946, allocations: 0 / 1.342 GB, free: 1.211 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005917/0.3952, allocations: 187.7 kB / 1.342 GB, free: 1.027 MB / 1.029 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.0005093/0.3957, allocations: 230.9 kB / 1.343 GB, free: 0.793 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.397, allocations: 0.7183 MB / 1.343 GB, free: 76 kB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.397, allocations: 0 / 1.343 GB, free: 76 kB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0006651/0.3976, allocations: 399.7 kB / 1.344 GB, free: 15.68 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3979, allocations: 18.06 kB / 1.344 GB, free: 15.67 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003393/0.4013, allocations: 0.8253 MB / 1.344 GB, free: 14.8 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.484e-05/0.4014, allocations: 103.5 kB / 1.345 GB, free: 14.68 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005254/0.402, allocations: 95.41 kB / 1.345 GB, free: 14.59 MB / 1.045 GB Notification: Performance of SimCode: time 7.51e-07/0.402, allocations: 3.938 kB / 1.345 GB, free: 14.59 MB / 1.045 GB Notification: Performance of Templates: time 0.01167/0.4136, allocations: 7.136 MB / 1.352 GB, free: 7.516 MB / 1.045 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] [Calling os._exit(0), Time elapsed: 11.269864418078214] Failed to read output from testmodel.py, exit status != 0: 0.42159500694833696 0.43707389799999996 0.07736269400000001 Calling exit ...