Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 108.9 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.125/3.125, allocations: 497.2 MB / 0.7811 GB, free: 33.73 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003094/0.003094, allocations: 78.55 kB / 1.134 GB, free: 33.62 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3739, allocations: 173.9 MB / 1.304 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002563/0.3764, allocations: 1.067 MB / 1.305 GB, free: 424 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3778, allocations: 0.9986 MB / 1.306 GB, free: 15.4 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3779, allocations: 4 kB / 1.306 GB, free: 15.4 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.378, allocations: 19.73 kB / 1.306 GB, free: 15.38 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.738e-05/0.3781, allocations: 23.73 kB / 1.306 GB, free: 15.36 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.3784, allocations: 71.84 kB / 1.306 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.3786, allocations: 176.1 kB / 1.306 GB, free: 15.11 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.3788, allocations: 64.27 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.3789, allocations: 71.7 kB / 1.306 GB, free: 14.97 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.379, allocations: 79.61 kB / 1.307 GB, free: 14.89 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.3791, allocations: 16 kB / 1.307 GB, free: 14.88 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 2.421e-05/0.3791, allocations: 16 kB / 1.307 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.158e-05/0.3791, allocations: 39.84 kB / 1.307 GB, free: 14.82 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.549e-05/0.3792, allocations: 71.59 kB / 1.307 GB, free: 14.75 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.3795, allocations: 187.1 kB / 1.307 GB, free: 14.57 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3795, allocations: 4 kB / 1.307 GB, free: 14.57 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.063e-06/0.3795, allocations: 0 / 1.307 GB, free: 14.57 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.3795, allocations: 4 kB / 1.307 GB, free: 14.56 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0008381/0.3803, allocations: 482.7 kB / 1.307 GB, free: 14.04 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.3804, allocations: 8.922 kB / 1.307 GB, free: 14.03 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.282e-05/0.3804, allocations: 50.73 kB / 1.307 GB, free: 13.97 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.007e-05/0.3805, allocations: 20.84 kB / 1.307 GB, free: 13.95 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.3808, allocations: 230.7 kB / 1.308 GB, free: 13.69 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3808, allocations: 12.38 kB / 1.308 GB, free: 13.68 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.3809, allocations: 24.31 kB / 1.308 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.3812, allocations: 150.6 kB / 1.308 GB, free: 13.5 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3812, allocations: 3.938 kB / 1.308 GB, free: 13.5 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.3812, allocations: 8 kB / 1.308 GB, free: 13.49 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.3812, allocations: 4 kB / 1.308 GB, free: 13.49 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000284/0.3815, allocations: 115.9 kB / 1.308 GB, free: 13.38 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.3826, allocations: 0.5312 MB / 1.308 GB, free: 12.79 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.383, allocations: 134.7 kB / 1.309 GB, free: 12.65 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.3832, allocations: 86.47 kB / 1.309 GB, free: 12.57 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.3832, allocations: 7.984 kB / 1.309 GB, free: 12.56 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.3835, allocations: 123.3 kB / 1.309 GB, free: 12.43 MB / 1.014 GB Notification: Performance of pre-optimization done (n=19): time 1.393e-06/0.3835, allocations: 0 / 1.309 GB, free: 12.43 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.0005539/0.384, allocations: 219 kB / 1.309 GB, free: 12.21 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.3841, allocations: 55.41 kB / 1.309 GB, free: 12.14 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.3842, allocations: 159.7 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.3843, allocations: 37.69 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.459e-05/0.3843, allocations: 116.6 kB / 1.309 GB, free: 11.82 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.301e-05/0.3844, allocations: 63.45 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.3845, allocations: 41.7 kB / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3846, allocations: 330.8 kB / 1.31 GB, free: 11.38 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.3849, allocations: 59.97 kB / 1.31 GB, free: 11.32 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.3851, allocations: 93.66 kB / 1.31 GB, free: 11.22 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.3854, allocations: 143.3 kB / 1.31 GB, free: 11.07 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3854, allocations: 0 / 1.31 GB, free: 11.07 MB / 1.014 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004884/0.3859, allocations: 213.4 kB / 1.31 GB, free: 10.86 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3859, allocations: 4 kB / 1.31 GB, free: 10.86 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3859, allocations: 4.031 kB / 1.31 GB, free: 10.85 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3859, allocations: 4 kB / 1.31 GB, free: 10.85 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.3861, allocations: 39.91 kB / 1.31 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3862, allocations: 0 / 1.31 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.3863, allocations: 27.88 kB / 1.31 GB, free: 10.78 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.3863, allocations: 4 kB / 1.31 GB, free: 10.78 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.000133/0.3864, allocations: 137.8 kB / 1.31 GB, free: 10.63 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.3865, allocations: 19.91 kB / 1.31 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004355/0.3869, allocations: 196.2 kB / 1.311 GB, free: 10.41 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3869, allocations: 0 / 1.311 GB, free: 10.41 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3869, allocations: 4 kB / 1.311 GB, free: 10.41 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3869, allocations: 0 / 1.311 GB, free: 10.41 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008697/0.3878, allocations: 0.5927 MB / 1.311 GB, free: 9.746 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3878, allocations: 3.938 kB / 1.311 GB, free: 9.742 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001767/0.388, allocations: 39.91 kB / 1.311 GB, free: 9.703 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.388, allocations: 8.125 kB / 1.311 GB, free: 9.695 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.388, allocations: 12 kB / 1.311 GB, free: 9.684 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.388, allocations: 4 kB / 1.311 GB, free: 9.68 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.388, allocations: 7.984 kB / 1.311 GB, free: 9.672 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006019/0.3886, allocations: 387.3 kB / 1.312 GB, free: 9.262 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.512e-05/0.3887, allocations: 101 kB / 1.312 GB, free: 9.145 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.3887, allocations: 4 kB / 1.312 GB, free: 9.141 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.3889, allocations: 20.02 kB / 1.312 GB, free: 9.121 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.3889, allocations: 23.97 kB / 1.312 GB, free: 9.098 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.3889, allocations: 8 kB / 1.312 GB, free: 9.09 MB / 1.014 GB Notification: Performance of sorting global known variables: time 9.307e-05/0.389, allocations: 123 kB / 1.312 GB, free: 8.973 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.389, allocations: 0 / 1.312 GB, free: 8.973 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002675/0.3893, allocations: 35.94 kB / 1.312 GB, free: 8.938 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0009603/0.3902, allocations: 0.9203 MB / 1.313 GB, free: 7.973 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004034/0.3907, allocations: 157.6 kB / 1.313 GB, free: 7.82 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3907, allocations: 4 kB / 1.313 GB, free: 7.816 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.3908, allocations: 79.84 kB / 1.313 GB, free: 7.738 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.3912, allocations: 32.36 kB / 1.313 GB, free: 7.707 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.394, allocations: 2.131 MB / 1.315 GB, free: 5.449 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.3944, allocations: 0.7166 MB / 1.316 GB, free: 4.703 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.24e-05/0.3944, allocations: 21.42 kB / 1.316 GB, free: 4.684 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3945, allocations: 55.41 kB / 1.316 GB, free: 4.629 MB / 1.014 GB Notification: Performance of SimCode: time 3.4e-07/0.3945, allocations: 4 kB / 1.316 GB, free: 4.625 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.4225, allocations: 3.638 MB / 1.32 GB, free: 1.102 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.141/8.563, allocations: 3.859 kB / 1.32 GB, free: 1.098 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=800 --tolerance=1e-07 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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: 15.32916402677074]