Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001905/0.001905, allocations: 104.4 kB / 16.45 MB, free: 6.445 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.00218/0.00218, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.497/1.497, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.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 2.944/2.944, allocations: 497.2 MB / 0.7812 GB, free: 11.96 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.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 67.89 kB / 1.134 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.078/1.08, allocations: 173.9 MB / 1.304 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002441/1.082, allocations: 0.6741 MB / 1.305 GB, free: 15.24 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001862/1.084, allocations: 1.064 MB / 1.306 GB, free: 14.46 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.406e-05/1.084, allocations: 1.219 kB / 1.306 GB, free: 14.46 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.133e-05/1.084, allocations: 4.594 kB / 1.306 GB, free: 14.46 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/1.084, allocations: 9.594 kB / 1.306 GB, free: 14.45 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/1.085, allocations: 40.5 kB / 1.306 GB, free: 14.43 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000154/1.085, allocations: 49.39 kB / 1.306 GB, free: 14.4 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/1.085, allocations: 9.734 kB / 1.306 GB, free: 14.4 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.084e-05/1.085, allocations: 21.73 kB / 1.306 GB, free: 14.39 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.354e-05/1.085, allocations: 28.11 kB / 1.306 GB, free: 14.37 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/1.085, allocations: 4.469 kB / 1.306 GB, free: 14.37 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.338e-05/1.085, allocations: 16.98 kB / 1.306 GB, free: 14.37 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.068e-05/1.085, allocations: 12.44 kB / 1.306 GB, free: 14.36 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.186e-05/1.085, allocations: 23.27 kB / 1.306 GB, free: 14.34 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002068/1.086, allocations: 55.88 kB / 1.306 GB, free: 14.32 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/1.086, allocations: 0 / 1.306 GB, free: 14.32 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.234e-06/1.086, allocations: 1.25 kB / 1.306 GB, free: 14.32 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.684e-06/1.086, allocations: 0 / 1.306 GB, free: 14.32 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007763/1.086, allocations: 363.7 kB / 1.306 GB, free: 13.95 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/1.086, allocations: 8.844 kB / 1.306 GB, free: 13.95 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.892e-05/1.086, allocations: 37.5 kB / 1.306 GB, free: 13.91 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.821e-05/1.086, allocations: 7.578 kB / 1.306 GB, free: 13.9 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/1.087, allocations: 164.6 kB / 1.306 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/1.087, allocations: 5.906 kB / 1.306 GB, free: 13.7 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/1.087, allocations: 4.266 kB / 1.306 GB, free: 13.7 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/1.087, allocations: 61.05 kB / 1.307 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/1.087, allocations: 9.062 kB / 1.307 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/1.087, allocations: 0.6562 kB / 1.307 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/1.087, allocations: 1.156 kB / 1.307 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000215/1.087, allocations: 42.33 kB / 1.307 GB, free: 13.65 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006749/1.088, allocations: 283 kB / 1.307 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/1.088, allocations: 58.45 kB / 1.307 GB, free: 13.32 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/1.088, allocations: 31.36 kB / 1.307 GB, free: 13.31 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/1.088, allocations: 5.188 kB / 1.307 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003092/1.089, allocations: 70.5 kB / 1.307 GB, free: 13.25 MB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.824e-06/1.089, allocations: 1.031 kB / 1.307 GB, free: 13.25 MB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.0005008/1.089, allocations: 125.6 kB / 1.307 GB, free: 13.19 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/1.089, allocations: 56.31 kB / 1.307 GB, free: 13.12 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/1.089, allocations: 106.7 kB / 1.307 GB, free: 13.02 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/1.089, allocations: 27.05 kB / 1.307 GB, free: 12.99 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.889e-05/1.089, allocations: 91.22 kB / 1.307 GB, free: 12.9 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/1.089, allocations: 10.31 kB / 1.307 GB, free: 12.89 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/1.089, allocations: 31.62 kB / 1.307 GB, free: 12.87 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001684/1.09, allocations: 322.5 kB / 1.308 GB, free: 12.55 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/1.09, allocations: 28.12 kB / 1.308 GB, free: 12.54 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/1.09, allocations: 52.8 kB / 1.308 GB, free: 12.5 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/1.09, allocations: 95.66 kB / 1.308 GB, free: 12.43 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.09, allocations: 0 / 1.308 GB, free: 12.43 MB / 1.014 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003177/1.09, allocations: 111.8 kB / 1.308 GB, free: 12.38 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/1.09, allocations: 4.875 kB / 1.308 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/1.09, allocations: 2.812 kB / 1.308 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/1.09, allocations: 1.375 kB / 1.308 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/1.091, allocations: 19.5 kB / 1.308 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/1.091, allocations: 1.75 kB / 1.308 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.807e-05/1.091, allocations: 11.69 kB / 1.308 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/1.091, allocations: 8.25 kB / 1.308 GB, free: 12.36 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001187/1.091, allocations: 121.8 kB / 1.308 GB, free: 12.24 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/1.091, allocations: 7.281 kB / 1.308 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003066/1.091, allocations: 107.4 kB / 1.308 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/1.091, allocations: 1.703 kB / 1.308 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/1.091, allocations: 0 / 1.308 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/1.091, allocations: 1.766 kB / 1.308 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005386/1.092, allocations: 354.7 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/1.092, allocations: 0 / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.352e-05/1.092, allocations: 13.81 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/1.092, allocations: 0 / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/1.092, allocations: 5.547 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/1.092, allocations: 1.656 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.092, allocations: 4.25 kB / 1.309 GB, free: 11.83 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/1.092, allocations: 199.1 kB / 1.309 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.479e-05/1.092, allocations: 78.97 kB / 1.309 GB, free: 11.58 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/1.092, allocations: 1.406 kB / 1.309 GB, free: 11.58 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.552e-05/1.092, allocations: 6.891 kB / 1.309 GB, free: 11.58 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/1.092, allocations: 8.141 kB / 1.309 GB, free: 11.58 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/1.092, allocations: 6.281 kB / 1.309 GB, free: 11.57 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.915e-05/1.092, allocations: 90.61 kB / 1.309 GB, free: 11.49 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/1.092, allocations: 0 / 1.309 GB, free: 11.49 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00027/1.093, allocations: 14.73 kB / 1.309 GB, free: 11.49 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0008761/1.094, allocations: 0.7293 MB / 1.31 GB, free: 10.81 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003208/1.094, allocations: 70.58 kB / 1.31 GB, free: 10.79 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.094, allocations: 0 / 1.31 GB, free: 10.79 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/1.094, allocations: 36.19 kB / 1.31 GB, free: 10.78 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/1.094, allocations: 18.47 kB / 1.31 GB, free: 10.77 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/1.096, allocations: 1.418 MB / 1.311 GB, free: 9.461 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/1.097, allocations: 0.6827 MB / 1.312 GB, free: 8.766 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.181e-05/1.097, allocations: 4.203 kB / 1.312 GB, free: 8.766 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.929e-05/1.097, allocations: 16.75 kB / 1.312 GB, free: 8.754 MB / 1.014 GB Notification: Performance of SimCode: time 8.72e-07/1.097, allocations: 0 / 1.312 GB, free: 8.754 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02712/1.124, allocations: 1.787 MB / 1.314 GB, free: 8.328 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/9.389, allocations: 8.25 kB / 1.314 GB, free: 8.324 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.889823806937784]