Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001258/0.001258, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.00142/0.00142, allocations: 218.7 kB / 23.03 MB, free: 4.922 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.528/1.528, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.854/2.854, allocations: 476.8 MB / 0.7715 GB, free: 3.93 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) [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.002089/0.002089, allocations: 68.05 kB / 1.118 GB, free: 39.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3959, allocations: 169.9 MB / 1.284 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001909/0.3978, allocations: 0.6207 MB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001898/0.3997, allocations: 1.308 MB / 1.286 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.3998, allocations: 4 kB / 1.286 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.8e-05/0.3998, allocations: 3.938 kB / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.488e-05/0.3998, allocations: 0 / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.4002, allocations: 83.72 kB / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.291e-05/0.4003, allocations: 27.86 kB / 1.286 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.881e-05/0.4004, allocations: 3.984 kB / 1.286 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.271e-05/0.4004, allocations: 8 kB / 1.286 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.895e-05/0.4005, allocations: 23.92 kB / 1.286 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.4005, allocations: 0 / 1.286 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.4008, allocations: 111.9 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.711e-05/0.4008, allocations: 7.984 kB / 1.286 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.4008, allocations: 7.938 kB / 1.286 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.401, allocations: 77.19 kB / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.401, allocations: 0 / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.401, allocations: 0 / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.401, allocations: 0 / 1.286 GB, free: 8.336 MB / 0.9825 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.000469/0.4015, allocations: 278.2 kB / 1.287 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.4015, allocations: 12.03 kB / 1.287 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.551e-05/0.4015, allocations: 4.172 kB / 1.287 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/0.4016, allocations: 38.75 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.4016, allocations: 4.891 kB / 1.287 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.4017, allocations: 110.5 kB / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.4017, allocations: 4.375 kB / 1.287 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.789e-05/0.4018, allocations: 8.359 kB / 1.287 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.4019, allocations: 79.33 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.4019, allocations: 0 / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.4019, allocations: 0 / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.4019, allocations: 8 kB / 1.287 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.679e-05/0.402, allocations: 27.91 kB / 1.287 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001906/0.4022, allocations: 136.7 kB / 1.287 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.4023, allocations: 62.44 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.469e-05/0.4024, allocations: 24.84 kB / 1.287 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002698/0.4027, allocations: 39.91 kB / 1.287 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.4027, allocations: 34.55 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.4027, allocations: 4 kB / 1.287 GB, free: 7.34 MB / 0.9825 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.02076/0.4235, allocations: 4.162 MB / 1.291 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.4235, allocations: 55.41 kB / 1.291 GB, free: 3.012 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.286e-05/0.4236, allocations: 93.84 kB / 1.291 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.837e-05/0.4237, allocations: 29.7 kB / 1.291 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.174e-05/0.4237, allocations: 88.27 kB / 1.292 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.4239, allocations: 63.42 kB / 1.292 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002831/0.4242, allocations: 89.67 kB / 1.292 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.4243, allocations: 322.8 kB / 1.292 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005698/0.4249, allocations: 311.9 kB / 1.292 GB, free: 2 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005778/0.4255, allocations: 315.8 kB / 1.293 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.4272, allocations: 0.7682 MB / 1.293 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.4272, allocations: 0 / 1.293 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00172/0.4289, allocations: 0.7982 MB / 1.294 GB, free: 120 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.4289, allocations: 6.5 kB / 1.294 GB, free: 116 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.4289, allocations: 7.922 kB / 1.294 GB, free: 108 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.429, allocations: 8 kB / 1.294 GB, free: 100 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009414/0.4299, allocations: 95.89 kB / 1.294 GB, free: 4 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.4299, allocations: 0 / 1.294 GB, free: 4 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004636/0.4304, allocations: 8.047 kB / 1.294 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.4305, allocations: 35.86 kB / 1.294 GB, free: 15.96 MB / 0.9981 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.0002368/0.4307, allocations: 117.8 kB / 1.294 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.382e-05/0.4308, allocations: 4 kB / 1.294 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003352/0.4342, allocations: 1.399 MB / 1.296 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.4342, allocations: 4 kB / 1.296 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4342, allocations: 4 kB / 1.296 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.4342, allocations: 3.984 kB / 1.296 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003257/0.4374, allocations: 1.704 MB / 1.297 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.4374, allocations: 4 kB / 1.297 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007918/0.4382, allocations: 107.9 kB / 1.298 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.055e-05/0.4382, allocations: 7.969 kB / 1.298 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.78e-05/0.4383, allocations: 32 kB / 1.298 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.4383, allocations: 80 / 1.298 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.4383, allocations: 3.984 kB / 1.298 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.441, allocations: 1.47 MB / 1.299 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.656e-05/0.441, allocations: 15.88 kB / 1.299 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.4411, allocations: 15.94 kB / 1.299 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004882/0.4416, allocations: 8 kB / 1.299 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.4418, allocations: 47.94 kB / 1.299 GB, free: 10.92 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.454e-05/0.4418, allocations: 28 kB / 1.299 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.004e-05/0.4419, allocations: 79.34 kB / 1.299 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.4419, allocations: 0 / 1.299 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006357/0.4425, allocations: 191.7 kB / 1.299 GB, free: 10.63 MB / 0.9981 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.003434/0.446, allocations: 2.122 MB / 1.301 GB, free: 8.477 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001366/0.4473, allocations: 0.7113 MB / 1.302 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4473, allocations: 0 / 1.302 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006797/0.448, allocations: 411.6 kB / 1.303 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.4484, allocations: 21.88 kB / 1.303 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007961/0.4563, allocations: 3.714 MB / 1.306 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.4564, allocations: 99.47 kB / 1.306 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001101/0.4575, allocations: 293.5 kB / 1.307 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006176/0.4582, allocations: 119.4 kB / 1.307 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of SimCode: time 1.052e-06/0.4582, allocations: 0 / 1.307 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04242/0.5006, allocations: 13.83 MB / 1.32 GB, free: 5.402 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/12.03, allocations: 13.94 kB / 1.32 GB, free: 5.391 MB / 1.014 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 19.274661615025252]