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.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.0009891/0.0009891, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0014/0.0014, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8832/0.8832, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.735/1.735, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.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 2.635e-06/2.635e-06, allocations: 0 / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.8e-05, allocations: 8.891 kB / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001633/0.001661, allocations: 0.6506 MB / 1 GB, free: 12.82 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.00275, allocations: 1.085 MB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.647e-05/0.002796, allocations: 0 / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.962e-05/0.002826, allocations: 7.875 kB / 1.001 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.794e-05/0.002904, allocations: 7.922 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002893/0.003193, allocations: 47.77 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.278e-05/0.003286, allocations: 51.78 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.003386, allocations: 12 kB / 1.001 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.863e-05/0.003465, allocations: 27.91 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.519e-05/0.00351, allocations: 19.97 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.003528, allocations: 4 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.585e-05/0.003593, allocations: 19.98 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.068e-05/0.003614, allocations: 11.92 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.416e-05/0.003648, allocations: 11.98 kB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.003784, allocations: 63.78 kB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.003787, allocations: 4 kB / 1.002 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.643e-06/0.003789, allocations: 0 / 1.002 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.003794, allocations: 0 / 1.002 GB, free: 11.44 MB / 0.9636 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.0004274/0.004221, allocations: 282.2 kB / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.004262, allocations: 12.75 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.001e-05/0.004292, allocations: 38.73 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.302e-05/0.004355, allocations: 8.891 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.443e-05/0.004429, allocations: 117.6 kB / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.004439, allocations: 384 / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.00445, allocations: 8.375 kB / 1.002 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.00458, allocations: 62.2 kB / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.004587, allocations: 192 / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.004598, allocations: 12.38 kB / 1.002 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.004604, allocations: 4.125 kB / 1.002 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9e-05/0.004694, allocations: 35.95 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003557/0.00505, allocations: 243.9 kB / 1.002 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.005152, allocations: 50.55 kB / 1.002 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.05e-05/0.005203, allocations: 32.94 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.005223, allocations: 7.938 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000127/0.00535, allocations: 79.33 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.005351, allocations: 0 / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002448/0.005596, allocations: 121.5 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.005632, allocations: 51.41 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.334e-05/0.005695, allocations: 117.8 kB / 1.003 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.005706, allocations: 25.7 kB / 1.003 GB, free: 9.984 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.928e-05/0.005745, allocations: 92.12 kB / 1.003 GB, free: 9.891 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.005769, allocations: 19.84 kB / 1.003 GB, free: 9.871 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.005805, allocations: 25.72 kB / 1.003 GB, free: 9.84 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.005887, allocations: 314.8 kB / 1.003 GB, free: 9.523 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/0.005938, allocations: 23.98 kB / 1.003 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.187e-05/0.006, allocations: 60.2 kB / 1.003 GB, free: 9.426 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.006113, allocations: 96.12 kB / 1.003 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.006115, allocations: 0 / 1.003 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001452/0.00626, allocations: 117.5 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.006273, allocations: 4.156 kB / 1.004 GB, free: 9.191 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.006277, allocations: 4 kB / 1.004 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.006292, allocations: 4 kB / 1.004 GB, free: 9.184 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.978e-05/0.006361, allocations: 19.92 kB / 1.004 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.006366, allocations: 0 / 1.004 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.255e-05/0.006399, allocations: 11.98 kB / 1.004 GB, free: 9.152 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.006408, allocations: 4 kB / 1.004 GB, free: 9.148 MB / 0.9636 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 6.02e-05/0.006468, allocations: 113.8 kB / 1.004 GB, free: 9.027 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.006477, allocations: 11.89 kB / 1.004 GB, free: 9.016 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.006632, allocations: 106 kB / 1.004 GB, free: 8.906 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.006637, allocations: 4 kB / 1.004 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.006641, allocations: 0 / 1.004 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.006645, allocations: 0 / 1.004 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002523/0.006897, allocations: 317.6 kB / 1.004 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.006898, allocations: 0 / 1.004 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.887e-05/0.006927, allocations: 20.3 kB / 1.004 GB, free: 8.523 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.006928, allocations: 0 / 1.004 GB, free: 8.523 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.006935, allocations: 4 kB / 1.004 GB, free: 8.52 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.006937, allocations: 8 kB / 1.004 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.006938, allocations: 0 / 1.004 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.007077, allocations: 187.4 kB / 1.004 GB, free: 8.312 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.985e-06/0.007084, allocations: 15.92 kB / 1.004 GB, free: 8.297 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.007098, allocations: 4 kB / 1.004 GB, free: 8.293 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.576e-05/0.007134, allocations: 4 kB / 1.004 GB, free: 8.289 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.068e-05/0.007164, allocations: 3.984 kB / 1.004 GB, free: 8.285 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.007169, allocations: 4 kB / 1.004 GB, free: 8.281 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.832e-05/0.007197, allocations: 91.27 kB / 1.005 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.007197, allocations: 0 / 1.005 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001562/0.007354, allocations: 12 kB / 1.005 GB, free: 8.18 MB / 0.9636 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.0003449/0.007698, allocations: 0.7279 MB / 1.005 GB, free: 7.422 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001449/0.007843, allocations: 64.08 kB / 1.005 GB, free: 7.359 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.007845, allocations: 4.312 kB / 1.005 GB, free: 7.355 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.351e-05/0.007899, allocations: 35.91 kB / 1.005 GB, free: 7.32 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.00807, allocations: 14.17 kB / 1.005 GB, free: 7.309 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009662/0.009037, allocations: 1.41 MB / 1.007 GB, free: 5.793 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.009224, allocations: 67.34 kB / 1.007 GB, free: 5.707 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.593e-05/0.00925, allocations: 7.984 kB / 1.007 GB, free: 5.699 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.26e-05/0.009283, allocations: 12.5 kB / 1.007 GB, free: 5.688 MB / 0.9636 GB Notification: Performance of SimCode: time 3.71e-07/0.009283, allocations: 0 / 1.007 GB, free: 5.688 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01431/0.02359, allocations: 2.486 MB / 1.009 GB, free: 3.34 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.449/6.472, allocations: 7 kB / 1.009 GB, free: 3.336 MB / 0.9636 GB " [Timeout remaining time 293] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.432247698307037]