Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.789/1.789, allocations: 306.1 MB / 321.4 MB, free: 10.75 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 171.5 kB / 393.1 MB, free: 4.074 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 225.7 MB / 0.6743 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008218/0.0008218, allocations: 97.56 kB / 0.7935 GB, free: 40.14 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003526, allocations: 8 kB / 0.9224 GB, free: 8.629 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5808/0.5812, allocations: 121.3 MB / 1.041 GB, free: 58.82 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0008018/0.582, allocations: 351.2 kB / 1.041 GB, free: 58.65 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.5836, allocations: 1.396 MB / 1.043 GB, free: 57.56 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.001e-05/0.5836, allocations: 0 / 1.043 GB, free: 57.56 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.5836, allocations: 3.938 kB / 1.043 GB, free: 57.56 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 2.257e-05/0.5837, allocations: 0 / 1.043 GB, free: 57.56 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.584, allocations: 56.03 kB / 1.043 GB, free: 57.53 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 5.403e-05/0.5841, allocations: 18.69 kB / 1.043 GB, free: 57.53 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 5.2e-05/0.5841, allocations: 2.625 kB / 1.043 GB, free: 57.53 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 2.57e-05/0.5841, allocations: 17.02 kB / 1.043 GB, free: 57.52 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 7.02e-05/0.5842, allocations: 18.2 kB / 1.043 GB, free: 57.51 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.5842, allocations: 2.094 kB / 1.043 GB, free: 57.51 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.5845, allocations: 85.19 kB / 1.043 GB, free: 57.49 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.728e-05/0.5845, allocations: 12.36 kB / 1.043 GB, free: 57.48 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.237e-05/0.5845, allocations: 34.67 kB / 1.043 GB, free: 57.45 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.5847, allocations: 65.8 kB / 1.043 GB, free: 57.43 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.5847, allocations: 1.938 kB / 1.043 GB, free: 57.43 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5847, allocations: 0 / 1.043 GB, free: 57.43 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.5847, allocations: 1.125 kB / 1.043 GB, free: 57.43 MB / 0.698 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.0003559/0.5851, allocations: 337.3 kB / 1.043 GB, free: 57.07 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.5851, allocations: 12.7 kB / 1.043 GB, free: 57.07 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.179e-05/0.5851, allocations: 7.906 kB / 1.043 GB, free: 57.06 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.114e-05/0.5852, allocations: 166.4 kB / 1.043 GB, free: 56.86 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.5852, allocations: 3.844 kB / 1.043 GB, free: 56.86 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.5853, allocations: 2.594 kB / 1.043 GB, free: 56.86 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.5854, allocations: 61.98 kB / 1.043 GB, free: 56.82 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.5854, allocations: 3.344 kB / 1.043 GB, free: 56.82 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.5854, allocations: 0.6562 kB / 1.043 GB, free: 56.82 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.5854, allocations: 0 / 1.043 GB, free: 56.82 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.987e-05/0.5855, allocations: 22.33 kB / 1.043 GB, free: 56.81 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.5856, allocations: 176.4 kB / 1.044 GB, free: 56.61 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.5858, allocations: 61.14 kB / 1.044 GB, free: 56.57 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.164e-05/0.5858, allocations: 27.36 kB / 1.044 GB, free: 56.55 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003491/0.5862, allocations: 0.5573 MB / 1.044 GB, free: 55.89 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.5862, allocations: 35.5 kB / 1.044 GB, free: 55.85 MB / 0.698 GB Notification: Performance of pre-optimization done (n=8): time 1.913e-06/0.5862, allocations: 0.625 kB / 1.044 GB, free: 55.85 MB / 0.698 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.01753/0.6038, allocations: 4.212 MB / 1.048 GB, free: 54.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.6038, allocations: 53.72 kB / 1.048 GB, free: 54.04 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.265e-05/0.6039, allocations: 92.56 kB / 1.049 GB, free: 53.94 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.268e-05/0.604, allocations: 29.7 kB / 1.049 GB, free: 53.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 1.738e-05/0.604, allocations: 82.61 kB / 1.049 GB, free: 53.82 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.597e-05/0.6041, allocations: 60.56 kB / 1.049 GB, free: 53.77 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.852e-05/0.6041, allocations: 1.125 kB / 1.049 GB, free: 53.77 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.236e-05/0.6042, allocations: 324 kB / 1.049 GB, free: 53.45 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.6047, allocations: 308.2 kB / 1.049 GB, free: 53.32 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/0.6052, allocations: 310.5 kB / 1.05 GB, free: 53.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.6065, allocations: 0.7518 MB / 1.05 GB, free: 52.86 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.6065, allocations: 2.953 kB / 1.05 GB, free: 52.86 MB / 0.698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001386/0.6079, allocations: 0.7851 MB / 1.051 GB, free: 52.53 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.6079, allocations: 6.219 kB / 1.051 GB, free: 52.53 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.6079, allocations: 4 kB / 1.051 GB, free: 52.52 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.608, allocations: 1.781 kB / 1.051 GB, free: 52.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007368/0.6087, allocations: 94.72 kB / 1.051 GB, free: 52.52 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.6087, allocations: 1.406 kB / 1.051 GB, free: 52.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.6092, allocations: 9.031 kB / 1.051 GB, free: 52.52 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.114e-05/0.6092, allocations: 38.8 kB / 1.051 GB, free: 52.51 MB / 0.698 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.0001472/0.6094, allocations: 120.8 kB / 1.051 GB, free: 52.39 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.388e-05/0.6095, allocations: 6.344 kB / 1.051 GB, free: 52.39 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.6125, allocations: 1.394 MB / 1.053 GB, free: 51.73 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.6125, allocations: 10.64 kB / 1.053 GB, free: 51.73 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.6125, allocations: 1.219 kB / 1.053 GB, free: 51.73 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.6125, allocations: 0 / 1.053 GB, free: 51.73 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002459/0.615, allocations: 1.801 MB / 1.055 GB, free: 50.69 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.615, allocations: 5.188 kB / 1.055 GB, free: 50.68 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.6158, allocations: 110.3 kB / 1.055 GB, free: 50.68 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.6158, allocations: 0 / 1.055 GB, free: 50.68 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.483e-05/0.6159, allocations: 33.17 kB / 1.055 GB, free: 50.67 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.6159, allocations: 3.062 kB / 1.055 GB, free: 50.67 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6159, allocations: 3.938 kB / 1.055 GB, free: 50.66 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.6178, allocations: 1.449 MB / 1.056 GB, free: 49.91 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.844e-05/0.6178, allocations: 100.4 kB / 1.056 GB, free: 49.8 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.429e-05/0.6179, allocations: 7.938 kB / 1.056 GB, free: 49.79 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004297/0.6184, allocations: 13.55 kB / 1.056 GB, free: 49.79 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.6185, allocations: 43.48 kB / 1.056 GB, free: 49.79 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.547e-05/0.6186, allocations: 25.09 kB / 1.056 GB, free: 49.79 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.479e-05/0.6186, allocations: 85.25 kB / 1.056 GB, free: 49.71 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6186, allocations: 0 / 1.056 GB, free: 49.71 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005499/0.6192, allocations: 171.3 kB / 1.057 GB, free: 49.68 MB / 0.698 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.0004352/0.6196, allocations: 226.2 kB / 1.057 GB, free: 49.55 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001066/0.6207, allocations: 0.7319 MB / 1.057 GB, free: 49.25 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.6207, allocations: 0 / 1.057 GB, free: 49.25 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000537/0.6213, allocations: 452.9 kB / 1.058 GB, free: 49.06 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.6216, allocations: 11.03 kB / 1.058 GB, free: 49.05 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.6244, allocations: 0.8557 MB / 1.059 GB, free: 48.64 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.6245, allocations: 0.7131 MB / 1.059 GB, free: 47.95 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001353/0.6259, allocations: 294.8 kB / 1.06 GB, free: 47.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005054/0.6264, allocations: 91.72 kB / 1.06 GB, free: 47.79 MB / 0.698 GB Notification: Performance of SimCode: time 5.61e-07/0.6264, allocations: 3.312 kB / 1.06 GB, free: 47.79 MB / 0.698 GB Notification: Performance of Templates: time 0.01365/0.6401, allocations: 10.62 MB / 1.07 GB, free: 47.08 MB / 0.698 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)