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.00202/0.00202, allocations: 114.6 kB / 17.16 MB, free: 6.004 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.003486/0.003486, allocations: 212.6 kB / 20.13 MB, free: 3.051 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.607/1.607, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 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.197/3.197, allocations: 0.5003 GB / 0.8026 GB, free: 6.738 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_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.002014/0.002014, allocations: 63.91 kB / 1.165 GB, free: 488 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.103/1.105, allocations: 178.9 MB / 1.34 GB, free: 16.29 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001755/1.107, allocations: 0.6232 MB / 1.341 GB, free: 15.89 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001659/1.108, allocations: 1.368 MB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.971e-05/1.108, allocations: 0 / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.116e-05/1.108, allocations: 3.938 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.273e-05/1.108, allocations: 5 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/1.109, allocations: 84.33 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.024e-05/1.109, allocations: 23.45 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.569e-05/1.109, allocations: 3.297 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.307e-05/1.109, allocations: 11.53 kB / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.401e-05/1.109, allocations: 19.8 kB / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/1.109, allocations: 1.281 kB / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003055/1.109, allocations: 111.9 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.555e-05/1.109, allocations: 6.641 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.758e-05/1.109, allocations: 13.91 kB / 1.342 GB, free: 14.78 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001796/1.11, allocations: 83.55 kB / 1.342 GB, free: 14.75 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/1.11, allocations: 0 / 1.342 GB, free: 14.75 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.673e-06/1.11, allocations: 0 / 1.342 GB, free: 14.75 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.551e-06/1.11, allocations: 0 / 1.342 GB, free: 14.75 MB / 1.061 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.0004388/1.11, allocations: 360.1 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/1.11, allocations: 9.562 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.178e-05/1.11, allocations: 1.281 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.501e-05/1.11, allocations: 37.22 kB / 1.343 GB, free: 14.33 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.063e-05/1.11, allocations: 7.156 kB / 1.343 GB, free: 14.33 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.988e-05/1.11, allocations: 167 kB / 1.343 GB, free: 14.13 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/1.11, allocations: 1.5 kB / 1.343 GB, free: 14.13 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/1.11, allocations: 3.844 kB / 1.343 GB, free: 14.13 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/1.11, allocations: 55.83 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/1.11, allocations: 5.328 kB / 1.343 GB, free: 14.08 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/1.11, allocations: 0 / 1.343 GB, free: 14.08 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/1.11, allocations: 1.25 kB / 1.343 GB, free: 14.08 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.442e-05/1.111, allocations: 23.58 kB / 1.343 GB, free: 14.08 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/1.111, allocations: 166.3 kB / 1.343 GB, free: 13.88 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/1.111, allocations: 66.73 kB / 1.343 GB, free: 13.83 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.45e-05/1.111, allocations: 26.16 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003628/1.111, allocations: 0.5604 MB / 1.344 GB, free: 13.16 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/1.111, allocations: 35.59 kB / 1.344 GB, free: 13.11 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/1.111, allocations: 0 / 1.344 GB, free: 13.11 MB / 1.061 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.02115/1.132, allocations: 4.397 MB / 1.348 GB, free: 11.26 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/1.132, allocations: 58.69 kB / 1.348 GB, free: 11.2 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.596e-05/1.133, allocations: 91.97 kB / 1.348 GB, free: 11.1 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.859e-05/1.133, allocations: 31.45 kB / 1.348 GB, free: 11.06 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.743e-05/1.133, allocations: 80.14 kB / 1.348 GB, free: 10.98 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/1.133, allocations: 59.41 kB / 1.349 GB, free: 10.93 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/1.133, allocations: 90 kB / 1.349 GB, free: 10.91 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.663e-05/1.133, allocations: 323 kB / 1.349 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005716/1.134, allocations: 306.8 kB / 1.349 GB, free: 10.46 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005995/1.134, allocations: 323 kB / 1.35 GB, free: 10.33 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/1.136, allocations: 0.7707 MB / 1.35 GB, free: 9.992 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/1.136, allocations: 0 / 1.35 GB, free: 9.992 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001645/1.138, allocations: 0.7947 MB / 1.351 GB, free: 9.664 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/1.138, allocations: 9.594 kB / 1.351 GB, free: 9.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/1.138, allocations: 1.375 kB / 1.351 GB, free: 9.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/1.138, allocations: 0 / 1.351 GB, free: 9.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009208/1.139, allocations: 95.25 kB / 1.351 GB, free: 9.656 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/1.139, allocations: 1.062 kB / 1.351 GB, free: 9.656 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005567/1.139, allocations: 10.12 kB / 1.351 GB, free: 9.652 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.961e-05/1.139, allocations: 40.8 kB / 1.351 GB, free: 9.645 MB / 1.061 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.0002058/1.139, allocations: 118 kB / 1.351 GB, free: 9.523 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/1.14, allocations: 8.062 kB / 1.351 GB, free: 9.52 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003324/1.143, allocations: 1.401 MB / 1.353 GB, free: 8.863 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/1.143, allocations: 3.984 kB / 1.353 GB, free: 8.863 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.143, allocations: 9.031 kB / 1.353 GB, free: 8.855 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/1.143, allocations: 1.875 kB / 1.353 GB, free: 8.855 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/1.146, allocations: 1.809 MB / 1.354 GB, free: 7.82 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/1.146, allocations: 1.484 kB / 1.354 GB, free: 7.82 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000862/1.147, allocations: 109.3 kB / 1.355 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/1.147, allocations: 7.25 kB / 1.355 GB, free: 7.809 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.231e-05/1.147, allocations: 29.39 kB / 1.355 GB, free: 7.801 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/1.147, allocations: 3.109 kB / 1.355 GB, free: 7.801 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.147, allocations: 1.094 kB / 1.355 GB, free: 7.801 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/1.149, allocations: 1.465 MB / 1.356 GB, free: 7.043 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/1.149, allocations: 95.55 kB / 1.356 GB, free: 6.938 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.646e-05/1.149, allocations: 10.8 kB / 1.356 GB, free: 6.93 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000557/1.15, allocations: 10.69 kB / 1.356 GB, free: 6.926 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/1.15, allocations: 47.09 kB / 1.356 GB, free: 6.918 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.828e-05/1.15, allocations: 28.62 kB / 1.356 GB, free: 6.918 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.289e-05/1.15, allocations: 80.41 kB / 1.356 GB, free: 6.84 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.15, allocations: 0 / 1.356 GB, free: 6.84 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0006959/1.151, allocations: 186.2 kB / 1.357 GB, free: 6.809 MB / 1.061 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.003198/1.154, allocations: 2.141 MB / 1.359 GB, free: 5.477 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001484/1.155, allocations: 0.716 MB / 1.359 GB, free: 5.191 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/1.156, allocations: 0 / 1.359 GB, free: 5.191 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0006901/1.156, allocations: 406.2 kB / 1.36 GB, free: 5.023 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/1.157, allocations: 17.41 kB / 1.36 GB, free: 5.012 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008288/1.165, allocations: 3.724 MB / 1.363 GB, free: 2.816 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/1.165, allocations: 0.7141 MB / 1.364 GB, free: 2.117 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.00103/1.166, allocations: 293.4 kB / 1.364 GB, free: 1.961 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006578/1.167, allocations: 117.8 kB / 1.364 GB, free: 1.93 MB / 1.061 GB Notification: Performance of SimCode: time 1.342e-06/1.167, allocations: 1.312 kB / 1.364 GB, free: 1.93 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04595/1.213, allocations: 12.93 MB / 1.377 GB, free: 0.8867 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.581/9.793, allocations: 10.77 kB / 1.377 GB, free: 0.8828 MB / 1.061 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 840.0] 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/jenkins1/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: 16.896604112989735]