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.001863/0.001863, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.002317/0.002317, allocations: 157.6 kB / 22.75 MB, free: 1.684 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 1.487/1.487, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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 3.184/3.184, allocations: 429.6 MB / 0.673 GB, free: 3.859 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.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.553e-06/1.553e-06, allocations: 0 / 0.8776 GB, free: 5.285 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.832e-05/2.988e-05, allocations: 6.25 kB / 0.8777 GB, free: 5.277 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001787/0.001817, allocations: 0.6195 MB / 0.8783 GB, free: 4.684 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.002175/0.003993, allocations: 1.312 MB / 0.8795 GB, free: 3.363 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.232e-05/0.004015, allocations: 0 / 0.8795 GB, free: 3.363 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 1.144e-05/0.004026, allocations: 1.344 kB / 0.8795 GB, free: 3.363 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 2.926e-05/0.004056, allocations: 3.938 kB / 0.8795 GB, free: 3.359 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004624/0.004518, allocations: 83.59 kB / 0.8796 GB, free: 3.277 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 6.216e-05/0.00458, allocations: 24.77 kB / 0.8796 GB, free: 3.254 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 3.734e-05/0.004617, allocations: 7.984 kB / 0.8797 GB, free: 3.246 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 3.847e-05/0.004656, allocations: 12.64 kB / 0.8797 GB, free: 3.234 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 7.081e-05/0.004727, allocations: 8.641 kB / 0.8797 GB, free: 3.227 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.004743, allocations: 4 kB / 0.8797 GB, free: 3.223 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003359/0.005079, allocations: 118.8 kB / 0.8798 GB, free: 3.109 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.45e-05/0.005093, allocations: 0 / 0.8798 GB, free: 3.109 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.005127, allocations: 15.98 kB / 0.8798 GB, free: 3.094 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0001951/0.005322, allocations: 87.7 kB / 0.8799 GB, free: 3.008 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.005326, allocations: 7.984 kB / 0.8799 GB, free: 3 MB / 0.7917 GB Notification: Performance of FrontEnd: time 6.71e-07/0.005327, allocations: 3.938 kB / 0.8799 GB, free: 2.996 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.005331, allocations: 0 / 0.8799 GB, free: 2.996 MB / 0.7917 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.0004821/0.005813, allocations: 267.8 kB / 0.8802 GB, free: 2.707 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.005849, allocations: 8.031 kB / 0.8802 GB, free: 2.699 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.005907, allocations: 16.89 kB / 0.8802 GB, free: 2.684 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.006026, allocations: 109.8 kB / 0.8803 GB, free: 2.551 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.006038, allocations: 1.875 kB / 0.8803 GB, free: 2.551 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.00607, allocations: 8.375 kB / 0.8803 GB, free: 2.543 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.006224, allocations: 71.95 kB / 0.8804 GB, free: 2.461 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.006235, allocations: 192 / 0.8804 GB, free: 2.461 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.006248, allocations: 7.438 kB / 0.8804 GB, free: 2.457 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.00626, allocations: 11.92 kB / 0.8804 GB, free: 2.445 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.981e-05/0.00634, allocations: 23.92 kB / 0.8804 GB, free: 2.422 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002905/0.00663, allocations: 117.2 kB / 0.8805 GB, free: 2.277 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.006765, allocations: 54.56 kB / 0.8806 GB, free: 2.215 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.537e-05/0.00682, allocations: 24.84 kB / 0.8806 GB, free: 2.188 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002759/0.007096, allocations: 38.28 kB / 0.8806 GB, free: 2.152 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.007139, allocations: 38.55 kB / 0.8807 GB, free: 2.105 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=8): time 9.71e-07/0.00714, allocations: 0 / 0.8807 GB, free: 2.105 MB / 0.7917 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.02157/0.02871, allocations: 4.176 MB / 0.8847 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.02877, allocations: 55.41 kB / 0.8848 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.02887, allocations: 97.84 kB / 0.8849 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.436e-05/0.02896, allocations: 25.7 kB / 0.8849 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.02901, allocations: 84.14 kB / 0.885 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.02915, allocations: 59.39 kB / 0.8851 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003397/0.02949, allocations: 89.67 kB / 0.8851 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001904/0.02968, allocations: 322.8 kB / 0.8854 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006036/0.03029, allocations: 303.9 kB / 0.8857 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005868/0.03088, allocations: 309.9 kB / 0.886 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001769/0.03264, allocations: 0.7781 MB / 0.8868 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.03265, allocations: 0 / 0.8868 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001884/0.03453, allocations: 0.808 MB / 0.8876 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.03455, allocations: 8 kB / 0.8876 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.03456, allocations: 0 / 0.8876 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.64e-05/0.03459, allocations: 0 / 0.8876 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008198/0.03541, allocations: 95.94 kB / 0.8877 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.03542, allocations: 0 / 0.8877 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.0359, allocations: 8 kB / 0.8877 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.036, allocations: 31.98 kB / 0.8877 GB, free: 10.73 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.0002549/0.03626, allocations: 129.8 kB / 0.8878 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.0364, allocations: 11.94 kB / 0.8879 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00359/0.03999, allocations: 1.407 MB / 0.8892 GB, free: 9.164 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.04, allocations: 4 kB / 0.8892 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.04001, allocations: 0 / 0.8892 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.04002, allocations: 3.984 kB / 0.8892 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003362/0.04338, allocations: 1.652 MB / 0.8908 GB, free: 7.465 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.04338, allocations: 0 / 0.8908 GB, free: 7.465 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009195/0.0443, allocations: 115.8 kB / 0.891 GB, free: 7.352 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.04431, allocations: 0 / 0.891 GB, free: 7.352 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.277e-05/0.04439, allocations: 31.98 kB / 0.891 GB, free: 7.32 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.0444, allocations: 4 kB / 0.891 GB, free: 7.316 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.0444, allocations: 0 / 0.891 GB, free: 7.316 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002825/0.04723, allocations: 1.478 MB / 0.8924 GB, free: 5.816 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.437e-05/0.04725, allocations: 19.88 kB / 0.8925 GB, free: 5.797 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.174e-05/0.04734, allocations: 16.09 kB / 0.8925 GB, free: 5.781 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.04782, allocations: 8 kB / 0.8925 GB, free: 5.773 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.04799, allocations: 47.89 kB / 0.8925 GB, free: 5.727 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.42e-05/0.04808, allocations: 31.98 kB / 0.8926 GB, free: 5.695 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.894e-05/0.04813, allocations: 75.28 kB / 0.8926 GB, free: 5.621 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.04813, allocations: 3.938 kB / 0.8926 GB, free: 5.617 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0006371/0.04877, allocations: 187.6 kB / 0.8928 GB, free: 5.434 MB / 0.8073 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.0006232/0.04939, allocations: 242.8 kB / 0.893 GB, free: 5.188 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001387/0.05078, allocations: 0.7146 MB / 0.8937 GB, free: 4.473 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.05078, allocations: 0 / 0.8937 GB, free: 4.473 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.05151, allocations: 407.6 kB / 0.8941 GB, free: 4.074 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.05186, allocations: 35.94 kB / 0.8942 GB, free: 4.043 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.05521, allocations: 0.7884 MB / 0.8949 GB, free: 3.223 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.05532, allocations: 107.2 kB / 0.895 GB, free: 3.098 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.001113/0.05644, allocations: 289.5 kB / 0.8953 GB, free: 2.816 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006135/0.05705, allocations: 96.47 kB / 0.8954 GB, free: 2.723 MB / 0.8073 GB Notification: Performance of SimCode: time 8.92e-07/0.05705, allocations: 0 / 0.8954 GB, free: 2.723 MB / 0.8073 GB Notification: Performance of Templates: time 0.02066/0.07771, allocations: 12.02 MB / 0.9071 GB, free: 6.781 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.224949491908774]