Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001914/0.001914, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002192/0.002192, allocations: 214.4 kB / 22.25 MB, free: 4.855 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.793 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.285/3.285, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 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.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.003066/0.003066, allocations: 69.42 kB / 1.186 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4149/0.418, allocations: 181.9 MB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002288/0.4203, allocations: 0.6803 MB / 1.364 GB, free: 13.42 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001645/0.4219, allocations: 1.101 MB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.471e-05/0.422, allocations: 3.938 kB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.655e-05/0.422, allocations: 3.938 kB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.797e-05/0.4221, allocations: 7.938 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003358/0.4224, allocations: 59.75 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.4226, allocations: 59.91 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.544e-05/0.4227, allocations: 7.984 kB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.16e-05/0.4227, allocations: 35.84 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.729e-05/0.4228, allocations: 27.91 kB / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.4228, allocations: 8 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.4229, allocations: 27.92 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.772e-05/0.4229, allocations: 11.98 kB / 1.365 GB, free: 12.05 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.328e-05/0.423, allocations: 23.92 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.4231, allocations: 79.97 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.4231, allocations: 0 / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.293e-06/0.4231, allocations: 0 / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.4231, allocations: 0 / 1.365 GB, free: 11.95 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006387/0.4238, allocations: 310.1 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4238, allocations: 16.03 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.961e-05/0.4239, allocations: 30.75 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.629e-05/0.4239, allocations: 8.891 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.4241, allocations: 118.5 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.4241, allocations: 8.312 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.4241, allocations: 8.375 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.4243, allocations: 78.2 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4243, allocations: 7.938 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.4244, allocations: 3.984 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.4244, allocations: 0 / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002116/0.4246, allocations: 59.89 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005654/0.4251, allocations: 279.7 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002244/0.4254, allocations: 74.53 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.4255, allocations: 33.91 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.4255, allocations: 4 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.4258, allocations: 95.48 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.893e-06/0.4258, allocations: 0 / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0005294/0.4263, allocations: 173.5 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.4264, allocations: 51.41 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.4265, allocations: 109.8 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.4265, allocations: 33.7 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.4266, allocations: 88.36 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.393e-05/0.4266, allocations: 27.75 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.428e-05/0.4267, allocations: 37.81 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4268, allocations: 326.7 kB / 1.367 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.4269, allocations: 35.98 kB / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.4271, allocations: 58.53 kB / 1.367 GB, free: 9.715 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.4273, allocations: 102.5 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4273, allocations: 4 kB / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003338/0.4277, allocations: 141.5 kB / 1.368 GB, free: 9.457 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.4277, allocations: 4 kB / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.4277, allocations: 0 / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.4277, allocations: 4 kB / 1.368 GB, free: 9.449 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.4278, allocations: 15.98 kB / 1.368 GB, free: 9.434 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.4278, allocations: 7.938 kB / 1.368 GB, free: 9.426 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.8e-05/0.4279, allocations: 20.23 kB / 1.368 GB, free: 9.406 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.4279, allocations: 4.375 kB / 1.368 GB, free: 9.402 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001105/0.428, allocations: 125.7 kB / 1.368 GB, free: 9.27 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.4281, allocations: 3.953 kB / 1.368 GB, free: 9.266 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000386/0.4284, allocations: 157.9 kB / 1.368 GB, free: 9.102 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.4284, allocations: 0 / 1.368 GB, free: 9.102 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4285, allocations: 0 / 1.368 GB, free: 9.102 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4285, allocations: 4 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005937/0.4291, allocations: 377.5 kB / 1.368 GB, free: 8.68 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4291, allocations: 0 / 1.368 GB, free: 8.68 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-05/0.4291, allocations: 11.98 kB / 1.368 GB, free: 8.668 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.4291, allocations: 0 / 1.368 GB, free: 8.668 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.4291, allocations: 4 kB / 1.368 GB, free: 8.664 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.4291, allocations: 3.938 kB / 1.368 GB, free: 8.66 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4291, allocations: 0 / 1.368 GB, free: 8.66 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003996/0.4295, allocations: 239.4 kB / 1.369 GB, free: 8.41 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.243e-05/0.4296, allocations: 11.94 kB / 1.369 GB, free: 8.398 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.4296, allocations: 4 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.4297, allocations: 11.92 kB / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.4297, allocations: 15.92 kB / 1.369 GB, free: 8.367 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.4297, allocations: 0 / 1.369 GB, free: 8.367 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.675e-05/0.4298, allocations: 83.28 kB / 1.369 GB, free: 8.285 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4298, allocations: 0 / 1.369 GB, free: 8.285 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002582/0.4301, allocations: 20 kB / 1.369 GB, free: 8.266 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007711/0.4308, allocations: 0.7924 MB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003249/0.4312, allocations: 87.88 kB / 1.37 GB, free: 7.363 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4312, allocations: 4 kB / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.4313, allocations: 43.91 kB / 1.37 GB, free: 7.316 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.4316, allocations: 13.98 kB / 1.37 GB, free: 7.305 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.4337, allocations: 1.508 MB / 1.371 GB, free: 5.711 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.177e-05/0.4338, allocations: 71.28 kB / 1.371 GB, free: 5.621 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.606e-05/0.4338, allocations: 12.41 kB / 1.371 GB, free: 5.609 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.75e-05/0.4339, allocations: 23.44 kB / 1.371 GB, free: 5.586 MB / 1.061 GB Notification: Performance of SimCode: time 6.71e-07/0.4339, allocations: 4 kB / 1.371 GB, free: 5.582 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.464, allocations: 2.635 MB / 1.374 GB, free: 3.086 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.82, allocations: 3.75 kB / 1.374 GB, free: 3.086 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.74443090800196]