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.001712/0.001712, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001595/0.001595, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.329/3.329, allocations: 0.49 GB / 0.7959 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_12_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.001969/0.001969, allocations: 69.73 kB / 1.155 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3808, allocations: 176.1 MB / 1.327 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001902/0.3827, allocations: 0.614 MB / 1.327 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.3846, allocations: 1.311 MB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.592e-05/0.3846, allocations: 0 / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.3847, allocations: 3.938 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 1.775e-05/0.3847, allocations: 0 / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.3851, allocations: 91.66 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 5.601e-05/0.3851, allocations: 19.92 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.903e-05/0.3852, allocations: 4 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.464e-05/0.3852, allocations: 7.984 kB / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.78e-05/0.3853, allocations: 19.91 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.3853, allocations: 8 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003097/0.3856, allocations: 111.9 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.626e-05/0.3856, allocations: 3.984 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.682e-05/0.3856, allocations: 15.94 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.3858, allocations: 83.98 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3858, allocations: 0 / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.153e-06/0.3858, allocations: 0 / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3858, allocations: 0 / 1.329 GB, free: 15.16 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.0004538/0.3863, allocations: 278.1 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3863, allocations: 16.03 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.265e-05/0.3863, allocations: 192 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.216e-05/0.3864, allocations: 34.75 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.871e-05/0.3864, allocations: 4.938 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.3865, allocations: 102.5 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-06/0.3865, allocations: 4.375 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.3865, allocations: 8.375 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.3867, allocations: 79.31 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.3867, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.3867, allocations: 4 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3867, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.083e-05/0.3868, allocations: 31.92 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001975/0.387, allocations: 144.6 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.3871, allocations: 50.56 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.688e-05/0.3871, allocations: 24.84 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002658/0.3874, allocations: 43.91 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.3874, allocations: 34.56 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.243e-06/0.3874, allocations: 0 / 1.33 GB, free: 14.18 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.02166/0.4091, allocations: 4.177 MB / 1.334 GB, free: 9.91 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.4091, allocations: 55.34 kB / 1.334 GB, free: 9.844 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.085e-05/0.4092, allocations: 93.86 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.039e-05/0.4093, allocations: 29.7 kB / 1.334 GB, free: 9.707 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.928e-05/0.4093, allocations: 84.12 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.4095, allocations: 67.59 kB / 1.334 GB, free: 9.555 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002806/0.4098, allocations: 89.67 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4099, allocations: 322.8 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.4105, allocations: 311.9 kB / 1.335 GB, free: 8.832 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005763/0.4111, allocations: 310.1 kB / 1.335 GB, free: 8.531 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/0.4127, allocations: 0.774 MB / 1.336 GB, free: 7.754 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4127, allocations: 3.938 kB / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001707/0.4144, allocations: 0.8 MB / 1.337 GB, free: 6.945 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.4144, allocations: 4 kB / 1.337 GB, free: 6.941 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.4144, allocations: 0 / 1.337 GB, free: 6.941 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.4144, allocations: 4 kB / 1.337 GB, free: 6.938 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000848/0.4153, allocations: 95.94 kB / 1.337 GB, free: 6.844 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.4153, allocations: 0 / 1.337 GB, free: 6.844 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004979/0.4158, allocations: 8 kB / 1.337 GB, free: 6.836 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.4159, allocations: 35.92 kB / 1.337 GB, free: 6.801 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.0002185/0.4161, allocations: 125.8 kB / 1.337 GB, free: 6.668 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.952e-05/0.4162, allocations: 4 kB / 1.337 GB, free: 6.664 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.4196, allocations: 1.399 MB / 1.338 GB, free: 5.25 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.4196, allocations: 7.938 kB / 1.338 GB, free: 5.242 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4196, allocations: 0 / 1.338 GB, free: 5.242 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.4196, allocations: 3.984 kB / 1.338 GB, free: 5.238 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003229/0.4228, allocations: 1.696 MB / 1.34 GB, free: 3.484 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4228, allocations: 0 / 1.34 GB, free: 3.484 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008239/0.4237, allocations: 111.9 kB / 1.34 GB, free: 3.375 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.4237, allocations: 3.969 kB / 1.34 GB, free: 3.371 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.432e-05/0.4238, allocations: 31.98 kB / 1.34 GB, free: 3.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.4238, allocations: 7.938 kB / 1.34 GB, free: 3.332 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4238, allocations: 0 / 1.34 GB, free: 3.332 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.4264, allocations: 1.474 MB / 1.342 GB, free: 1.84 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.847e-05/0.4264, allocations: 15.84 kB / 1.342 GB, free: 1.824 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.4265, allocations: 11.94 kB / 1.342 GB, free: 1.812 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000539/0.4271, allocations: 8 kB / 1.342 GB, free: 1.805 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.4272, allocations: 43.95 kB / 1.342 GB, free: 1.762 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.15e-05/0.4273, allocations: 35.98 kB / 1.342 GB, free: 1.727 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.589e-05/0.4274, allocations: 79.34 kB / 1.342 GB, free: 1.648 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4274, allocations: 0 / 1.342 GB, free: 1.648 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0006582/0.428, allocations: 179.7 kB / 1.342 GB, free: 1.473 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.003471/0.4315, allocations: 2.138 MB / 1.344 GB, free: 15.3 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001402/0.4329, allocations: 0.7151 MB / 1.345 GB, free: 14.59 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4329, allocations: 0 / 1.345 GB, free: 14.59 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0007114/0.4336, allocations: 407.6 kB / 1.345 GB, free: 14.19 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.434, allocations: 13.25 kB / 1.345 GB, free: 14.18 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008483/0.4425, allocations: 3.719 MB / 1.349 GB, free: 10.38 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.887e-05/0.4426, allocations: 99.47 kB / 1.349 GB, free: 10.26 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001093/0.4437, allocations: 297.5 kB / 1.349 GB, free: 9.961 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006306/0.4443, allocations: 119.4 kB / 1.349 GB, free: 9.844 MB / 1.045 GB Notification: Performance of SimCode: time 1.292e-06/0.4443, allocations: 0 / 1.349 GB, free: 9.844 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04184/0.4861, allocations: 13.83 MB / 1.363 GB, free: 12.22 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/12.05, allocations: 7.297 kB / 1.363 GB, free: 12.22 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.425853615044616]