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.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.001041/0.001041, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.001031/0.001031, allocations: 177 kB / 23.36 MB, free: 1.137 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.995/0.995, allocations: 177.1 MB / 203.8 MB, free: 5.332 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.483/2.483, allocations: 438.8 MB / 0.6826 GB, free: 13.57 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 0.8387 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.241e-05, allocations: 3.297 kB / 0.8387 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001463/0.001486, allocations: 0.6782 MB / 0.8393 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.002946, allocations: 1.349 MB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.596e-05/0.002972, allocations: 0 / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.002987, allocations: 3.938 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 2.209e-05/0.003009, allocations: 0 / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003453/0.003355, allocations: 75.59 kB / 0.8407 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 5.236e-05/0.003407, allocations: 19.98 kB / 0.8408 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.654e-05/0.003443, allocations: 4 kB / 0.8408 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 3.808e-05/0.003482, allocations: 15.97 kB / 0.8408 GB, free: 11.92 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.793e-05/0.003549, allocations: 15.92 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.003562, allocations: 4 kB / 0.8408 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002597/0.003822, allocations: 123.7 kB / 0.8409 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.003836, allocations: 7.984 kB / 0.8409 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.389e-05/0.003849, allocations: 4 kB / 0.8409 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.003989, allocations: 91.75 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.003991, allocations: 0 / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.312e-06/0.003992, allocations: 0 / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.003996, allocations: 0 / 0.841 GB, free: 11.68 MB / 0.8073 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.0003037/0.0043, allocations: 264.7 kB / 0.8413 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.004333, allocations: 8.625 kB / 0.8413 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.943e-05/0.004362, allocations: 4.938 kB / 0.8413 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.475e-05/0.004447, allocations: 113.7 kB / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.004456, allocations: 384 / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.004479, allocations: 12.36 kB / 0.8414 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.897e-05/0.004568, allocations: 71.92 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.004578, allocations: 192 / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.004587, allocations: 4.375 kB / 0.8415 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.004594, allocations: 11.94 kB / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.881e-05/0.004632, allocations: 8 kB / 0.8415 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.768e-05/0.00473, allocations: 80.97 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.93e-05/0.004809, allocations: 46.5 kB / 0.8416 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.932e-05/0.004829, allocations: 16.86 kB / 0.8416 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001581/0.004987, allocations: 40.19 kB / 0.8417 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.005008, allocations: 30.56 kB / 0.8417 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 8.91e-07/0.005009, allocations: 7.938 kB / 0.8417 GB, free: 10.88 MB / 0.8073 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.01023/0.01524, allocations: 4.701 MB / 0.8463 GB, free: 6.078 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.01527, allocations: 55.41 kB / 0.8463 GB, free: 6.012 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.616e-05/0.01533, allocations: 98.7 kB / 0.8464 GB, free: 5.902 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 5.746e-05/0.01538, allocations: 29.7 kB / 0.8465 GB, free: 5.867 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.409e-05/0.01541, allocations: 84.14 kB / 0.8465 GB, free: 5.781 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.95e-05/0.0155, allocations: 55.47 kB / 0.8466 GB, free: 5.727 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.01564, allocations: 49.64 kB / 0.8466 GB, free: 5.672 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.01572, allocations: 314.8 kB / 0.8469 GB, free: 5.355 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/0.01598, allocations: 312 kB / 0.8472 GB, free: 5.051 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.01624, allocations: 320 kB / 0.8476 GB, free: 4.738 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008574/0.0171, allocations: 0.7995 MB / 0.8483 GB, free: 3.938 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.0171, allocations: 0 / 0.8483 GB, free: 3.938 MB / 0.8073 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0007751/0.01788, allocations: 0.7463 MB / 0.8491 GB, free: 3.188 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.01789, allocations: 11.94 kB / 0.8491 GB, free: 3.176 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.0179, allocations: 0 / 0.8491 GB, free: 3.176 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.01792, allocations: 0 / 0.8491 GB, free: 3.176 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.01831, allocations: 55.86 kB / 0.8491 GB, free: 3.121 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.01832, allocations: 7.938 kB / 0.8491 GB, free: 3.113 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.0185, allocations: 8 kB / 0.8491 GB, free: 3.105 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.01855, allocations: 11.97 kB / 0.8492 GB, free: 3.094 MB / 0.8073 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.0001314/0.01868, allocations: 113.8 kB / 0.8493 GB, free: 2.973 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.848e-05/0.01876, allocations: 19.92 kB / 0.8493 GB, free: 2.953 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.02015, allocations: 0.9698 MB / 0.8502 GB, free: 1.973 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.02015, allocations: 4 kB / 0.8502 GB, free: 1.969 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.02015, allocations: 0 / 0.8502 GB, free: 1.969 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.02016, allocations: 0 / 0.8502 GB, free: 1.969 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.0214, allocations: 0.9804 MB / 0.8512 GB, free: 0.9609 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.0214, allocations: 0 / 0.8512 GB, free: 0.9609 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.02179, allocations: 75.91 kB / 0.8513 GB, free: 0.8867 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.0218, allocations: 0 / 0.8513 GB, free: 0.8867 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.02184, allocations: 11.98 kB / 0.8513 GB, free: 0.875 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.02184, allocations: 0 / 0.8513 GB, free: 0.875 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.02184, allocations: 0 / 0.8513 GB, free: 0.875 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009663/0.02281, allocations: 0.8684 MB / 0.8521 GB, free: 15.98 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.976e-05/0.02283, allocations: 23.91 kB / 0.8521 GB, free: 15.96 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.635e-05/0.02288, allocations: 8 kB / 0.8522 GB, free: 15.95 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.02308, allocations: 12 kB / 0.8522 GB, free: 15.94 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/0.02317, allocations: 23.91 kB / 0.8522 GB, free: 15.92 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.02321, allocations: 7.984 kB / 0.8522 GB, free: 15.91 MB / 0.823 GB Notification: Performance of sorting global known variables: time 1.056e-05/0.02322, allocations: 4.859 kB / 0.8522 GB, free: 15.91 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.02322, allocations: 0 / 0.8522 GB, free: 15.91 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0004069/0.02363, allocations: 187.7 kB / 0.8524 GB, free: 15.72 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.0003837/0.02401, allocations: 232 kB / 0.8526 GB, free: 15.49 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0005859/0.0246, allocations: 0.5794 MB / 0.8532 GB, free: 14.91 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.0246, allocations: 0 / 0.8532 GB, free: 14.91 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.02487, allocations: 256.6 kB / 0.8534 GB, free: 14.65 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.02506, allocations: 27.86 kB / 0.8534 GB, free: 14.62 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.02648, allocations: 0.5101 MB / 0.8539 GB, free: 14.09 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.611e-05/0.02653, allocations: 81.33 kB / 0.854 GB, free: 13.99 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0006571/0.02719, allocations: 293.5 kB / 0.8543 GB, free: 13.7 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/0.02775, allocations: 83.34 kB / 0.8544 GB, free: 13.62 MB / 0.823 GB Notification: Performance of SimCode: time 1.512e-06/0.02775, allocations: 3.938 kB / 0.8544 GB, free: 13.61 MB / 0.823 GB Notification: Performance of Templates: time 0.01399/0.04174, allocations: 12.94 MB / 0.867 GB, free: 0.7109 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.504577112849802]