Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008121/0.0008121, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008208/0.0008208, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.9112/0.9112, allocations: 177.2 MB / 202.8 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.746/1.746, allocations: 377.8 MB / 0.6221 GB, free: 8.633 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.307e-06/3.307e-06, allocations: 0 / 0.9809 GB, free: 2.578 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.375e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001331/0.001355, allocations: 0.673 MB / 0.9816 GB, free: 1.906 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0009934/0.002348, allocations: 1.088 MB / 0.9827 GB, free: 0.8047 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.11e-05/0.002389, allocations: 0 / 0.9827 GB, free: 0.8047 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.759e-05/0.002417, allocations: 3.938 kB / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.876e-05/0.002475, allocations: 7.938 kB / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.002733, allocations: 51.7 kB / 0.9827 GB, free: 0.7422 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 8.514e-05/0.002818, allocations: 43.86 kB / 0.9828 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.025e-05/0.002908, allocations: 11.98 kB / 0.9828 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 6.807e-05/0.002976, allocations: 23.97 kB / 0.9828 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.247e-05/0.003019, allocations: 19.92 kB / 0.9828 GB, free: 0.6445 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.003033, allocations: 4 kB / 0.9828 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.583e-05/0.003088, allocations: 19.98 kB / 0.9828 GB, free: 0.6211 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.042e-05/0.003109, allocations: 11.97 kB / 0.9829 GB, free: 0.6094 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.003139, allocations: 15.94 kB / 0.9829 GB, free: 0.5938 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.003263, allocations: 67.77 kB / 0.9829 GB, free: 0.5273 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.003264, allocations: 0 / 0.9829 GB, free: 0.5273 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.092e-06/0.003265, allocations: 0 / 0.9829 GB, free: 0.5273 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.00327, allocations: 0 / 0.9829 GB, free: 0.5273 MB / 0.9323 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.000535/0.003805, allocations: 290.2 kB / 0.9832 GB, free: 216 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.003843, allocations: 8.031 kB / 0.9832 GB, free: 208 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.844e-05/0.003872, allocations: 34.75 kB / 0.9833 GB, free: 164 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.003932, allocations: 12.83 kB / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.025e-05/0.004002, allocations: 117.7 kB / 0.9834 GB, free: 8 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.004012, allocations: 384 / 0.9834 GB, free: 8 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.004032, allocations: 8.453 kB / 0.9834 GB, free: 16 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.004159, allocations: 62.23 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.004166, allocations: 192 / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.004174, allocations: 384 / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.004179, allocations: 4.125 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.453e-05/0.004274, allocations: 47.89 kB / 0.9835 GB, free: 15.88 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003424/0.004616, allocations: 243.9 kB / 0.9837 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.004724, allocations: 54.55 kB / 0.9838 GB, free: 15.54 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.817e-05/0.004772, allocations: 24.97 kB / 0.9838 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.004795, allocations: 11.88 kB / 0.9838 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.004925, allocations: 75.31 kB / 0.9839 GB, free: 15.41 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.004926, allocations: 0 / 0.9839 GB, free: 15.41 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002465/0.005172, allocations: 117.6 kB / 0.984 GB, free: 15.29 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.005207, allocations: 55.41 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.627e-05/0.005263, allocations: 105.8 kB / 0.9842 GB, free: 15.11 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.005275, allocations: 29.7 kB / 0.9842 GB, free: 15.07 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.509e-05/0.00531, allocations: 88.09 kB / 0.9843 GB, free: 14.98 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.005326, allocations: 19.83 kB / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/0.00536, allocations: 25.7 kB / 0.9843 GB, free: 14.94 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.302e-05/0.005433, allocations: 318.8 kB / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.522e-05/0.005488, allocations: 28.17 kB / 0.9846 GB, free: 14.59 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.411e-05/0.005552, allocations: 68.28 kB / 0.9847 GB, free: 14.51 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.005663, allocations: 84.19 kB / 0.9848 GB, free: 14.41 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.005664, allocations: 0 / 0.9848 GB, free: 14.41 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001441/0.005808, allocations: 117.5 kB / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.00582, allocations: 4 kB / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.299e-06/0.005824, allocations: 0 / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.005834, allocations: 4 kB / 0.9849 GB, free: 14.28 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.453e-05/0.005899, allocations: 15.98 kB / 0.9849 GB, free: 14.27 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.005904, allocations: 4.297 kB / 0.9849 GB, free: 14.26 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.244e-05/0.005937, allocations: 7.953 kB / 0.9849 GB, free: 14.25 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.005944, allocations: 8 kB / 0.9849 GB, free: 14.25 MB / 0.948 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 5.925e-05/0.006004, allocations: 121.9 kB / 0.9851 GB, free: 14.12 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-06/0.006012, allocations: 15.86 kB / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.00616, allocations: 98.08 kB / 0.9852 GB, free: 14 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.006162, allocations: 0 / 0.9852 GB, free: 14 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.006166, allocations: 0 / 0.9852 GB, free: 14 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.006169, allocations: 0 / 0.9852 GB, free: 14 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.006417, allocations: 321.5 kB / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.006418, allocations: 4 kB / 0.9855 GB, free: 13.63 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.731e-05/0.006445, allocations: 7.984 kB / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.006448, allocations: 3.984 kB / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.006455, allocations: 4 kB / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.006456, allocations: 0 / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.006457, allocations: 0 / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.006597, allocations: 199.8 kB / 0.9857 GB, free: 13.41 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-06/0.006604, allocations: 7.953 kB / 0.9857 GB, free: 13.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.006616, allocations: 7.938 kB / 0.9857 GB, free: 13.39 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.138e-05/0.006658, allocations: 15.98 kB / 0.9857 GB, free: 13.38 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.006692, allocations: 7.984 kB / 0.9857 GB, free: 13.37 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.006697, allocations: 0 / 0.9857 GB, free: 13.37 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.824e-05/0.006725, allocations: 87.27 kB / 0.9858 GB, free: 13.28 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.006725, allocations: 4 kB / 0.9858 GB, free: 13.28 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001645/0.00689, allocations: 11.94 kB / 0.9858 GB, free: 13.27 MB / 0.948 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.0003729/0.007263, allocations: 0.7318 MB / 0.9865 GB, free: 12.51 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001619/0.007424, allocations: 71.89 kB / 0.9866 GB, free: 12.44 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.007426, allocations: 0 / 0.9866 GB, free: 12.44 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.699e-05/0.007483, allocations: 27.97 kB / 0.9866 GB, free: 12.41 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.007678, allocations: 4 kB / 0.9866 GB, free: 12.41 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.008708, allocations: 1.412 MB / 0.988 GB, free: 10.89 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.34e-05/0.008762, allocations: 63.34 kB / 0.9881 GB, free: 10.8 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.64e-05/0.008788, allocations: 4 kB / 0.9881 GB, free: 10.8 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.632e-05/0.008824, allocations: 16.5 kB / 0.9881 GB, free: 10.79 MB / 0.948 GB Notification: Performance of SimCode: time 5.21e-07/0.008825, allocations: 4 kB / 0.9881 GB, free: 10.78 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.02375, allocations: 2.487 MB / 0.9905 GB, free: 8.453 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.694/6.717, allocations: 12.58 kB / 0.9905 GB, free: 8.441 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.861583465710282]