Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001313/0.001313, allocations: 107.6 kB / 16.45 MB, free: 6.504 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.001268/0.001268, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.446/1.446, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.19/3.19, allocations: 497.2 MB / 0.7811 GB, free: 33.68 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.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 72.27 kB / 1.134 GB, free: 33.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3964/0.3983, allocations: 173.9 MB / 1.304 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002141/0.4004, allocations: 0.6721 MB / 1.305 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.4022, allocations: 1.069 MB / 1.306 GB, free: 15.8 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.783e-05/0.4022, allocations: 7.938 kB / 1.306 GB, free: 15.79 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.45e-05/0.4023, allocations: 3.938 kB / 1.306 GB, free: 15.79 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.006e-05/0.4023, allocations: 7.938 kB / 1.306 GB, free: 15.78 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003146/0.4026, allocations: 43.83 kB / 1.306 GB, free: 15.74 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001646/0.4028, allocations: 51.78 kB / 1.306 GB, free: 15.69 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.4029, allocations: 8.844 kB / 1.306 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.57e-05/0.403, allocations: 15.98 kB / 1.306 GB, free: 15.66 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.578e-05/0.403, allocations: 35.83 kB / 1.306 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.4031, allocations: 4 kB / 1.306 GB, free: 15.62 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.212e-05/0.4031, allocations: 20 kB / 1.306 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.231e-05/0.4032, allocations: 11.98 kB / 1.306 GB, free: 15.59 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.307e-05/0.4032, allocations: 27.86 kB / 1.306 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.4034, allocations: 52.06 kB / 1.306 GB, free: 15.52 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.4034, allocations: 3.938 kB / 1.306 GB, free: 15.51 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4034, allocations: 0 / 1.306 GB, free: 15.51 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.4034, allocations: 4 kB / 1.306 GB, free: 15.51 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006626/0.404, allocations: 367.3 kB / 1.306 GB, free: 15.1 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4041, allocations: 12.92 kB / 1.306 GB, free: 15.09 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.825e-05/0.4041, allocations: 38.75 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.221e-05/0.4042, allocations: 4.891 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.4043, allocations: 164.4 kB / 1.307 GB, free: 14.84 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.4043, allocations: 384 / 1.307 GB, free: 14.84 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.4043, allocations: 8.359 kB / 1.307 GB, free: 14.83 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000214/0.4046, allocations: 66.22 kB / 1.307 GB, free: 14.76 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.4046, allocations: 3.938 kB / 1.307 GB, free: 14.75 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.4046, allocations: 4 kB / 1.307 GB, free: 14.75 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.4046, allocations: 7.938 kB / 1.307 GB, free: 14.74 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.4048, allocations: 43.89 kB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004774/0.4052, allocations: 284.7 kB / 1.307 GB, free: 14.37 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.4054, allocations: 50.55 kB / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.4055, allocations: 36.95 kB / 1.307 GB, free: 14.27 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.4056, allocations: 4 kB / 1.307 GB, free: 14.27 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.4058, allocations: 79.31 kB / 1.307 GB, free: 14.18 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.4058, allocations: 0 / 1.307 GB, free: 14.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0004376/0.4062, allocations: 125.7 kB / 1.307 GB, free: 14.05 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.4063, allocations: 55.41 kB / 1.307 GB, free: 13.98 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.4064, allocations: 105.8 kB / 1.307 GB, free: 13.87 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.4064, allocations: 25.7 kB / 1.307 GB, free: 13.84 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.464e-05/0.4065, allocations: 88.09 kB / 1.307 GB, free: 13.75 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.4065, allocations: 15.91 kB / 1.307 GB, free: 13.73 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-05/0.4066, allocations: 25.7 kB / 1.307 GB, free: 13.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.4067, allocations: 322.7 kB / 1.308 GB, free: 13.38 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.4068, allocations: 35.91 kB / 1.308 GB, free: 13.34 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.4069, allocations: 56.27 kB / 1.308 GB, free: 13.27 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.4072, allocations: 100.2 kB / 1.308 GB, free: 13.16 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.4072, allocations: 0 / 1.308 GB, free: 13.16 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002767/0.4074, allocations: 117.5 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4075, allocations: 8 kB / 1.308 GB, free: 13.03 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.4075, allocations: 8.109 kB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.4075, allocations: 0 / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.4076, allocations: 15.98 kB / 1.308 GB, free: 13.01 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.4076, allocations: 4.312 kB / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.225e-05/0.4077, allocations: 11.92 kB / 1.308 GB, free: 12.99 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.4077, allocations: 4 kB / 1.308 GB, free: 12.99 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001122/0.4078, allocations: 127.1 kB / 1.308 GB, free: 12.86 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.4078, allocations: 7.953 kB / 1.308 GB, free: 12.85 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003061/0.4081, allocations: 110 kB / 1.308 GB, free: 12.73 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.4081, allocations: 0 / 1.308 GB, free: 12.73 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4081, allocations: 0 / 1.308 GB, free: 12.73 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4081, allocations: 0 / 1.308 GB, free: 12.73 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005112/0.4086, allocations: 370.4 kB / 1.309 GB, free: 12.31 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4086, allocations: 3.938 kB / 1.309 GB, free: 12.31 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.594e-05/0.4087, allocations: 15.98 kB / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4087, allocations: 0 / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.4087, allocations: 0 / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.4087, allocations: 0 / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4087, allocations: 0 / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003143/0.409, allocations: 207.3 kB / 1.309 GB, free: 12.07 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.163e-05/0.4091, allocations: 81.11 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.4091, allocations: 4 kB / 1.309 GB, free: 11.97 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.743e-05/0.4092, allocations: 8.234 kB / 1.309 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.4092, allocations: 7.938 kB / 1.309 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.4093, allocations: 8 kB / 1.309 GB, free: 11.95 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.163e-05/0.4093, allocations: 87.27 kB / 1.309 GB, free: 11.86 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.4093, allocations: 0 / 1.309 GB, free: 11.86 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002486/0.4096, allocations: 12 kB / 1.309 GB, free: 11.85 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006988/0.4103, allocations: 0.7359 MB / 1.31 GB, free: 11.09 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002653/0.4105, allocations: 71.88 kB / 1.31 GB, free: 11.02 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4105, allocations: 4.188 kB / 1.31 GB, free: 11.02 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.4107, allocations: 35.97 kB / 1.31 GB, free: 10.98 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.411, allocations: 15.92 kB / 1.31 GB, free: 10.96 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.4128, allocations: 1.408 MB / 1.311 GB, free: 9.449 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.4132, allocations: 0.6846 MB / 1.312 GB, free: 8.738 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.107e-05/0.4132, allocations: 8 kB / 1.312 GB, free: 8.73 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.109e-05/0.4133, allocations: 15.44 kB / 1.312 GB, free: 8.715 MB / 1.014 GB Notification: Performance of SimCode: time 5.41e-07/0.4133, allocations: 0 / 1.312 GB, free: 8.715 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.4385, allocations: 1.828 MB / 1.314 GB, free: 7.008 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.113/8.551, allocations: 7.344 kB / 1.314 GB, free: 7.004 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.385076571255922]