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.001681/0.001681, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002515/0.002515, allocations: 220.4 kB / 23.05 MB, free: 5.074 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.544/1.544, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.288/3.288, allocations: 0.49 GB / 0.7959 GB, free: 33.42 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.002041/0.002041, allocations: 71.05 kB / 1.155 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3605, allocations: 176.1 MB / 1.327 GB, free: 1.953 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001864/0.3624, allocations: 0.6293 MB / 1.327 GB, free: 1.328 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001821/0.3642, allocations: 1.377 MB / 1.329 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.758e-05/0.3642, allocations: 0 / 1.329 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.3642, allocations: 0 / 1.329 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.674e-05/0.3643, allocations: 3.938 kB / 1.329 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003969/0.3647, allocations: 75.73 kB / 1.329 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 6.479e-05/0.3647, allocations: 27.95 kB / 1.329 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.3648, allocations: 0 / 1.329 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.879e-05/0.3648, allocations: 19.88 kB / 1.329 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.958e-05/0.3649, allocations: 15.92 kB / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.3649, allocations: 4 kB / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.3652, allocations: 111.9 kB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.695e-05/0.3652, allocations: 11.98 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.3652, allocations: 11.92 kB / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.3654, allocations: 76.02 kB / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3654, allocations: 0 / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.432e-06/0.3654, allocations: 0 / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.3654, allocations: 0 / 1.329 GB, free: 15.58 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.0005055/0.3659, allocations: 282.2 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 6.415e-05/0.366, allocations: 12.03 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.206e-05/0.366, allocations: 4.188 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.643e-05/0.366, allocations: 30.75 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.3661, allocations: 4.938 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.3662, allocations: 118.5 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.3662, allocations: 384 / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.3662, allocations: 8.312 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001507/0.3664, allocations: 53.62 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3664, allocations: 0 / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.3664, allocations: 4 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.3664, allocations: 7.938 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.759e-05/0.3665, allocations: 27.95 kB / 1.33 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002175/0.3667, allocations: 140.6 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.3668, allocations: 62.44 kB / 1.33 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.04e-05/0.3669, allocations: 28.84 kB / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000275/0.3672, allocations: 39.91 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.3672, allocations: 38.56 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.3672, allocations: 0 / 1.33 GB, free: 14.61 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.02071/0.3879, allocations: 4.148 MB / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.388, allocations: 55.41 kB / 1.334 GB, free: 10.29 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.411e-05/0.3881, allocations: 93.86 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.573e-05/0.3881, allocations: 29.7 kB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.047e-05/0.3882, allocations: 80.14 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.3883, allocations: 63.45 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002949/0.3886, allocations: 97.8 kB / 1.334 GB, free: 9.91 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002189/0.3888, allocations: 322.8 kB / 1.335 GB, free: 9.586 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006158/0.3895, allocations: 307.9 kB / 1.335 GB, free: 9.285 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006509/0.3901, allocations: 309.8 kB / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/0.3918, allocations: 0.7778 MB / 1.336 GB, free: 8.203 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3918, allocations: 0 / 1.336 GB, free: 8.203 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001654/0.3934, allocations: 0.7996 MB / 1.337 GB, free: 7.398 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3934, allocations: 11.88 kB / 1.337 GB, free: 7.387 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3934, allocations: 4 kB / 1.337 GB, free: 7.383 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.3935, allocations: 4 kB / 1.337 GB, free: 7.379 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000868/0.3943, allocations: 95.88 kB / 1.337 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.3943, allocations: 0 / 1.337 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000518/0.3949, allocations: 8 kB / 1.337 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.399e-05/0.3949, allocations: 35.92 kB / 1.337 GB, free: 7.242 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.0002385/0.3952, allocations: 117.8 kB / 1.337 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.684e-05/0.3953, allocations: 4 kB / 1.337 GB, free: 7.113 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003292/0.3986, allocations: 1.403 MB / 1.338 GB, free: 5.695 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3986, allocations: 7.984 kB / 1.338 GB, free: 5.688 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3986, allocations: 0 / 1.338 GB, free: 5.688 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.3986, allocations: 7.984 kB / 1.338 GB, free: 5.68 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003184/0.4018, allocations: 1.782 MB / 1.34 GB, free: 3.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.4018, allocations: 12.02 kB / 1.34 GB, free: 3.828 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00081/0.4026, allocations: 103.9 kB / 1.34 GB, free: 3.727 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.4026, allocations: 3.938 kB / 1.34 GB, free: 3.723 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.024e-05/0.4027, allocations: 32 kB / 1.34 GB, free: 3.691 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.4027, allocations: 0 / 1.34 GB, free: 3.691 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4027, allocations: 0 / 1.34 GB, free: 3.691 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.4052, allocations: 1.474 MB / 1.342 GB, free: 2.199 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.4053, allocations: 19.91 kB / 1.342 GB, free: 2.18 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.4054, allocations: 11.94 kB / 1.342 GB, free: 2.168 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005661/0.4059, allocations: 12 kB / 1.342 GB, free: 2.156 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.4061, allocations: 39.95 kB / 1.342 GB, free: 2.117 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/0.4062, allocations: 35.98 kB / 1.342 GB, free: 2.082 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.305e-05/0.4062, allocations: 75.28 kB / 1.342 GB, free: 2.008 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4062, allocations: 0 / 1.342 GB, free: 2.008 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000608/0.4068, allocations: 179.7 kB / 1.342 GB, free: 1.832 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.003434/0.4102, allocations: 2.136 MB / 1.344 GB, free: 15.67 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001367/0.4116, allocations: 0.7169 MB / 1.345 GB, free: 14.95 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4116, allocations: 0 / 1.345 GB, free: 14.95 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006973/0.4123, allocations: 411.6 kB / 1.345 GB, free: 14.55 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.4127, allocations: 16.12 kB / 1.345 GB, free: 14.54 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008395/0.4211, allocations: 3.734 MB / 1.349 GB, free: 10.71 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.4215, allocations: 0.7141 MB / 1.35 GB, free: 9.973 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001085/0.4225, allocations: 293.5 kB / 1.35 GB, free: 9.688 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005926/0.4231, allocations: 115.4 kB / 1.35 GB, free: 9.578 MB / 1.045 GB Notification: Performance of SimCode: time 1.613e-06/0.4231, allocations: 0 / 1.35 GB, free: 9.578 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04317/0.4663, allocations: 13.5 MB / 1.363 GB, free: 12.26 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.91, allocations: 14.39 kB / 1.363 GB, free: 12.25 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: 18.985701253986917]