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.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.001392/0.001392, 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.001775/0.001775, allocations: 214.8 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.586/1.586, allocations: 230.6 MB / 256 MB, free: 8.027 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.49/3.49, allocations: 0.505 GB / 0.8101 GB, free: 22.07 MB / 0.6231 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.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: 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.002085/0.002085, allocations: 69.47 kB / 1.177 GB, free: 17.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.405, allocations: 180.2 MB / 1.353 GB, free: 8.555 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002884/0.4079, allocations: 1.08 MB / 1.354 GB, free: 7.477 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001822/0.4097, allocations: 1.038 MB / 1.355 GB, free: 6.426 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/0.41, allocations: 4 kB / 1.355 GB, free: 6.422 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.4102, allocations: 19.73 kB / 1.355 GB, free: 6.402 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.4103, allocations: 19.8 kB / 1.355 GB, free: 6.383 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000455/0.4107, allocations: 75.86 kB / 1.355 GB, free: 6.309 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003486/0.4111, allocations: 180 kB / 1.355 GB, free: 6.129 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.4113, allocations: 60.69 kB / 1.355 GB, free: 6.062 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.4115, allocations: 79.69 kB / 1.355 GB, free: 5.984 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.4116, allocations: 75.62 kB / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.4117, allocations: 16 kB / 1.355 GB, free: 5.895 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.452e-05/0.4118, allocations: 24 kB / 1.356 GB, free: 5.871 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.303e-05/0.4118, allocations: 39.83 kB / 1.356 GB, free: 5.832 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.4119, allocations: 75.59 kB / 1.356 GB, free: 5.758 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.4123, allocations: 191.1 kB / 1.356 GB, free: 5.57 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4123, allocations: 4 kB / 1.356 GB, free: 5.566 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4123, allocations: 0 / 1.356 GB, free: 5.566 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.457e-05/0.4123, allocations: 0 / 1.356 GB, free: 5.566 MB / 1.045 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.001006/0.4133, allocations: 430.3 kB / 1.356 GB, free: 5.109 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.4134, allocations: 12.03 kB / 1.356 GB, free: 5.098 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.519e-05/0.4134, allocations: 46.73 kB / 1.356 GB, free: 5.043 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.4136, allocations: 28.78 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.4139, allocations: 164.7 kB / 1.356 GB, free: 4.832 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.414, allocations: 12.38 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.414, allocations: 16.38 kB / 1.356 GB, free: 4.805 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/0.4144, allocations: 157.3 kB / 1.357 GB, free: 4.645 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.4144, allocations: 0 / 1.357 GB, free: 4.645 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.4144, allocations: 4 kB / 1.357 GB, free: 4.641 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.4144, allocations: 4 kB / 1.357 GB, free: 4.637 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.4147, allocations: 111.9 kB / 1.357 GB, free: 4.527 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.4159, allocations: 0.5031 MB / 1.357 GB, free: 3.98 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004183/0.4163, allocations: 130.6 kB / 1.357 GB, free: 3.844 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.4165, allocations: 78.42 kB / 1.357 GB, free: 3.766 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.4166, allocations: 7.906 kB / 1.357 GB, free: 3.758 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002724/0.4168, allocations: 121.2 kB / 1.358 GB, free: 3.629 MB / 1.045 GB Notification: Performance of pre-optimization done (n=19): time 1.653e-06/0.4168, allocations: 0 / 1.358 GB, free: 3.629 MB / 1.045 GB Notification: Performance of matching and sorting (n=19): time 0.0006002/0.4174, allocations: 225.4 kB / 1.358 GB, free: 3.402 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.4175, allocations: 55.41 kB / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.4177, allocations: 158.2 kB / 1.358 GB, free: 3.172 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.4178, allocations: 33.7 kB / 1.358 GB, free: 3.133 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.65e-05/0.4179, allocations: 124.4 kB / 1.358 GB, free: 3.008 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.94e-05/0.4179, allocations: 71.41 kB / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.289e-05/0.418, allocations: 41.7 kB / 1.358 GB, free: 2.891 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4182, allocations: 322.8 kB / 1.359 GB, free: 2.566 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.4184, allocations: 71.95 kB / 1.359 GB, free: 2.496 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.4186, allocations: 91.09 kB / 1.359 GB, free: 2.402 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.419, allocations: 142.1 kB / 1.359 GB, free: 2.258 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.419, allocations: 0 / 1.359 GB, free: 2.258 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005245/0.4195, allocations: 220.1 kB / 1.359 GB, free: 2.039 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.4195, allocations: 4 kB / 1.359 GB, free: 2.035 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.4195, allocations: 0 / 1.359 GB, free: 2.035 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.4195, allocations: 4 kB / 1.359 GB, free: 2.031 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.4197, allocations: 35.92 kB / 1.359 GB, free: 1.996 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.4197, allocations: 0 / 1.359 GB, free: 1.996 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.4199, allocations: 31.86 kB / 1.359 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.4199, allocations: 4 kB / 1.359 GB, free: 1.961 MB / 1.045 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.0001412/0.42, allocations: 141.7 kB / 1.359 GB, free: 1.812 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.4201, allocations: 15.91 kB / 1.359 GB, free: 1.797 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004406/0.4205, allocations: 192.3 kB / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4205, allocations: 0 / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.4205, allocations: 4 kB / 1.359 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4205, allocations: 0 / 1.359 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008872/0.4214, allocations: 0.5607 MB / 1.36 GB, free: 0.9727 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4214, allocations: 0 / 1.36 GB, free: 0.9727 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.4216, allocations: 40.11 kB / 1.36 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.4216, allocations: 11.92 kB / 1.36 GB, free: 0.9219 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.4217, allocations: 8 kB / 1.36 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.4217, allocations: 3.984 kB / 1.36 GB, free: 0.9102 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/0.4217, allocations: 4 kB / 1.36 GB, free: 0.9062 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006371/0.4223, allocations: 378 kB / 1.36 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.4224, allocations: 23.78 kB / 1.36 GB, free: 492 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.4224, allocations: 4 kB / 1.36 GB, free: 488 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.4225, allocations: 20.02 kB / 1.36 GB, free: 468 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.004e-05/0.4226, allocations: 27.91 kB / 1.361 GB, free: 440 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.4226, allocations: 8 kB / 1.361 GB, free: 432 kB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001011/0.4227, allocations: 123.1 kB / 1.361 GB, free: 308 kB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4227, allocations: 0 / 1.361 GB, free: 308 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002845/0.423, allocations: 35.95 kB / 1.361 GB, free: 272 kB / 1.045 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.0009913/0.424, allocations: 0.9164 MB / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004487/0.4245, allocations: 153.6 kB / 1.362 GB, free: 15.16 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4245, allocations: 0 / 1.362 GB, free: 15.16 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.4247, allocations: 84.33 kB / 1.362 GB, free: 15.07 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.425, allocations: 35.92 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.4282, allocations: 2.126 MB / 1.364 GB, free: 12.79 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.4286, allocations: 0.7243 MB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.691e-05/0.4287, allocations: 17.42 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.4288, allocations: 59.41 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of SimCode: time 5.71e-07/0.4288, allocations: 0 / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03761/0.4664, allocations: 3.837 MB / 1.368 GB, free: 8.266 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.8, allocations: 7.422 kB / 1.368 GB, free: 8.262 MB / 1.061 GB " [Timeout remaining time 288] (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/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: 19.1024160659872]