Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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.001525/0.001525, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001517/0.001517, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.567/1.567, allocations: 230.6 MB / 256 MB, free: 8.016 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.919/2.919, allocations: 476.7 MB / 0.7707 GB, free: 4.266 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.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",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.002107/0.002107, allocations: 67.41 kB / 1.117 GB, free: 40.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3656, allocations: 170 MB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002728/0.3683, allocations: 1.068 MB / 1.284 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001523/0.3699, allocations: 1.046 MB / 1.285 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.37, allocations: 7.938 kB / 1.286 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.3701, allocations: 15.8 kB / 1.286 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.757e-05/0.3702, allocations: 15.75 kB / 1.286 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.3706, allocations: 79.84 kB / 1.286 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002759/0.3708, allocations: 184 kB / 1.286 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.371, allocations: 60.27 kB / 1.286 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.3711, allocations: 71.77 kB / 1.286 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.3713, allocations: 83.61 kB / 1.286 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.3713, allocations: 16 kB / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.929e-05/0.3713, allocations: 19.94 kB / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.139e-05/0.3714, allocations: 47.78 kB / 1.286 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.325e-05/0.3715, allocations: 75.58 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.3718, allocations: 183.6 kB / 1.286 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3718, allocations: 4 kB / 1.286 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3718, allocations: 3.938 kB / 1.286 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.3718, allocations: 0 / 1.286 GB, free: 8.715 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009001/0.3727, allocations: 432.1 kB / 1.287 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3727, allocations: 8.031 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.986e-05/0.3728, allocations: 50.73 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.3729, allocations: 24.8 kB / 1.287 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.3732, allocations: 168.8 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.3732, allocations: 8.375 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.3733, allocations: 20.38 kB / 1.287 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003249/0.3736, allocations: 153.4 kB / 1.287 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3736, allocations: 0 / 1.287 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.3736, allocations: 8 kB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.3736, allocations: 4 kB / 1.287 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002835/0.3739, allocations: 107.9 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.3751, allocations: 0.4992 MB / 1.288 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004025/0.3755, allocations: 134.6 kB / 1.288 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.3757, allocations: 80.86 kB / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.3757, allocations: 0 / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.3759, allocations: 131.2 kB / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.3759, allocations: 0 / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.0005817/0.3765, allocations: 223.5 kB / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.3766, allocations: 51.41 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.3767, allocations: 162.2 kB / 1.289 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.3767, allocations: 37.7 kB / 1.289 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.256e-05/0.3768, allocations: 112.5 kB / 1.289 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.513e-05/0.3769, allocations: 75.41 kB / 1.289 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-05/0.377, allocations: 41.7 kB / 1.289 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3771, allocations: 322.8 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.3773, allocations: 67.95 kB / 1.289 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.3775, allocations: 92.05 kB / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.3779, allocations: 148.7 kB / 1.289 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3779, allocations: 0 / 1.289 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005125/0.3784, allocations: 217.4 kB / 1.29 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3784, allocations: 8 kB / 1.29 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3784, allocations: 3.984 kB / 1.29 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3784, allocations: 0 / 1.29 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/0.3786, allocations: 39.98 kB / 1.29 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3786, allocations: 0 / 1.29 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.3788, allocations: 27.8 kB / 1.29 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.3788, allocations: 12 kB / 1.29 GB, free: 5.102 MB / 0.9825 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.0001212/0.3789, allocations: 130.4 kB / 1.29 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.3789, allocations: 15.91 kB / 1.29 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004241/0.3794, allocations: 194.6 kB / 1.29 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3794, allocations: 4 kB / 1.29 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3794, allocations: 0 / 1.29 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3794, allocations: 0 / 1.29 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008458/0.3802, allocations: 0.5508 MB / 1.291 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3802, allocations: 7.984 kB / 1.291 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.3804, allocations: 44.11 kB / 1.291 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3804, allocations: 3.938 kB / 1.291 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.3804, allocations: 4 kB / 1.291 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.3804, allocations: 7.938 kB / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3804, allocations: 0 / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.381, allocations: 386.8 kB / 1.291 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.254e-05/0.3811, allocations: 23.78 kB / 1.291 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.3811, allocations: 8 kB / 1.291 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.3813, allocations: 20.11 kB / 1.291 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.3813, allocations: 31.95 kB / 1.291 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.3813, allocations: 8 kB / 1.291 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.621e-05/0.3814, allocations: 121 kB / 1.291 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3814, allocations: 0 / 1.291 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002837/0.3817, allocations: 28 kB / 1.291 GB, free: 3.422 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.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.0009709/0.3827, allocations: 0.9185 MB / 1.292 GB, free: 2.461 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004247/0.3831, allocations: 151.9 kB / 1.292 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3831, allocations: 0 / 1.292 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002028/0.3833, allocations: 88.27 kB / 1.292 GB, free: 2.227 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.3837, allocations: 29.81 kB / 1.292 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.3866, allocations: 2.135 MB / 1.294 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004353/0.3871, allocations: 0.7204 MB / 1.295 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.639e-05/0.3871, allocations: 21.42 kB / 1.295 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.3873, allocations: 51.42 kB / 1.295 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of SimCode: time 4.6e-07/0.3873, allocations: 0 / 1.295 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03388/0.4211, allocations: 3.836 MB / 1.299 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.78, allocations: 11.09 kB / 1.299 GB, free: 11.42 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-07 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.777675824938342]